File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
core/src/firebase/firestore Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 36
36
using firebase::firestore::model::ObjectValue;
37
37
using firebase::firestore::nanopb::MakeNSData;
38
38
using firebase::firestore::testutil::Field;
39
- using firebase::firestore::testutil::WrapObject;
40
39
41
40
@interface FSTUserDataConverterTests : XCTestCase
42
41
@end
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ - (id)convertedValue:(FieldValue)value options:(const FieldValueOptions &)option
213
213
case FieldValue::Type::Timestamp:
214
214
return [self convertedTimestamp: value options: options];
215
215
case FieldValue::Type::ServerTimestamp:
216
- return [self convertedServerTimetamp : value options: options];
216
+ return [self convertedServerTimestamp : value options: options];
217
217
case FieldValue::Type::String:
218
218
return util::WrapNSString (value.string_value ());
219
219
case FieldValue::Type::Blob:
@@ -240,7 +240,8 @@ - (id)convertedTimestamp:(const FieldValue &)value options:(const FieldValueOpti
240
240
}
241
241
}
242
242
243
- - (id )convertedServerTimetamp : (const FieldValue &)value options : (const FieldValueOptions &)options {
243
+ - (id )convertedServerTimestamp : (const FieldValue &)value
244
+ options : (const FieldValueOptions &)options {
244
245
const auto &sts = value.server_timestamp_value ();
245
246
switch (options.server_timestamp_behavior ()) {
246
247
case ServerTimestampBehavior::kNone :
Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ - (NSString *)canonicalString {
472
472
return string;
473
473
}
474
474
475
- - (BOOL )sortsBeforeDocument : (FSTDocument *)document
475
+ - (bool )sortsBeforeDocument : (FSTDocument *)document
476
476
usingSortOrder : (NSArray <FSTSortOrder *> *)sortOrder {
477
477
HARD_ASSERT (_position.size () <= sortOrder.count ,
478
478
" FSTIndexPosition has more components than provided sort order." );
Original file line number Diff line number Diff line change @@ -31,10 +31,6 @@ namespace firebase {
31
31
32
32
namespace {
33
33
34
- // We pass it by value without std::move.
35
- static_assert (std::is_trivially_copyable<Timestamp>::value,
36
- " Timestamp must be trivially copyable" );
37
-
38
34
constexpr int32_t kNanosPerSecond = 1E9 ;
39
35
40
36
/* *
You can’t perform that action at this time.
0 commit comments