@@ -60,16 +60,18 @@ @interface FIRQuerySnapshotTests : XCTestCase
60
60
@implementation FIRQuerySnapshotTests
61
61
62
62
- (void )testEquals {
63
- FIRQuerySnapshot *foo = FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , false );
64
- FIRQuerySnapshot *fooDup = FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , false );
63
+ FIRQuerySnapshot *foo =
64
+ FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , false , false );
65
+ FIRQuerySnapshot *fooDup =
66
+ FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , false , false );
65
67
FIRQuerySnapshot *differentPath =
66
- FSTTestQuerySnapshot (" bar" , @{}, @{@" a" : @{@" a" : @1 }}, true , false );
68
+ FSTTestQuerySnapshot (" bar" , @{}, @{@" a" : @{@" a" : @1 }}, true , false , false );
67
69
FIRQuerySnapshot *differentDoc =
68
- FSTTestQuerySnapshot (" foo" , @{@" a" : @{@" b" : @1 }}, @{}, true , false );
70
+ FSTTestQuerySnapshot (" foo" , @{@" a" : @{@" b" : @1 }}, @{}, true , false , false );
69
71
FIRQuerySnapshot *noPendingWrites =
70
- FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, false , false );
72
+ FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, false , false , false );
71
73
FIRQuerySnapshot *fromCache =
72
- FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , true );
74
+ FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , true , true );
73
75
XCTAssertEqualObjects (foo, fooDup);
74
76
XCTAssertNotEqualObjects (foo, differentPath);
75
77
XCTAssertNotEqualObjects (foo, differentDoc);
@@ -103,7 +105,8 @@ ViewSnapshot viewSnapshot(query, newDocuments, oldDocuments, std::move(documentC
103
105
/* mutated_keys=*/ DocumentKeySet (),
104
106
/* from_cache=*/ false ,
105
107
/* sync_state_changed=*/ true ,
106
- /* excludes_metadata_changes=*/ false );
108
+ /* excludes_metadata_changes=*/ false ,
109
+ /* has_cached_results=*/ false );
107
110
SnapshotMetadata metadata (/* pending_writes=*/ false , /* from_cache=*/ false );
108
111
FIRQuerySnapshot *snapshot = [[FIRQuerySnapshot alloc ] initWithFirestore: firestore
109
112
originalQuery: query
0 commit comments