@@ -60,16 +60,18 @@ @interface FIRQuerySnapshotTests : XCTestCase
6060@implementation FIRQuerySnapshotTests
6161
6262- (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 );
6567 FIRQuerySnapshot *differentPath =
66- FSTTestQuerySnapshot (" bar" , @{}, @{@" a" : @{@" a" : @1 }}, true , false );
68+ FSTTestQuerySnapshot (" bar" , @{}, @{@" a" : @{@" a" : @1 }}, true , false , false );
6769 FIRQuerySnapshot *differentDoc =
68- FSTTestQuerySnapshot (" foo" , @{@" a" : @{@" b" : @1 }}, @{}, true , false );
70+ FSTTestQuerySnapshot (" foo" , @{@" a" : @{@" b" : @1 }}, @{}, true , false , false );
6971 FIRQuerySnapshot *noPendingWrites =
70- FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, false , false );
72+ FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, false , false , false );
7173 FIRQuerySnapshot *fromCache =
72- FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , true );
74+ FSTTestQuerySnapshot (" foo" , @{}, @{@" a" : @{@" a" : @1 }}, true , true , true );
7375 XCTAssertEqualObjects (foo, fooDup);
7476 XCTAssertNotEqualObjects (foo, differentPath);
7577 XCTAssertNotEqualObjects (foo, differentDoc);
@@ -103,7 +105,8 @@ ViewSnapshot viewSnapshot(query, newDocuments, oldDocuments, std::move(documentC
103105 /* mutated_keys=*/ DocumentKeySet (),
104106 /* from_cache=*/ false ,
105107 /* sync_state_changed=*/ true ,
106- /* excludes_metadata_changes=*/ false );
108+ /* excludes_metadata_changes=*/ false ,
109+ /* has_cached_results=*/ false );
107110 SnapshotMetadata metadata (/* pending_writes=*/ false , /* from_cache=*/ false );
108111 FIRQuerySnapshot *snapshot = [[FIRQuerySnapshot alloc ] initWithFirestore: firestore
109112 originalQuery: query
0 commit comments