@@ -284,7 +284,7 @@ public void testHandlesSetMutationThenAckThenRelease() {
284
284
allocateQuery (query );
285
285
286
286
writeMutation (setMutation ("foo/bar" , map ("foo" , "bar" )));
287
- notifyLocalViewChanges (viewChanges (2 , asList ("foo/bar" ), emptyList ()));
287
+ notifyLocalViewChanges (viewChanges (2 , /* synced= */ false , asList ("foo/bar" ), emptyList ()));
288
288
289
289
assertChanged (doc ("foo/bar" , 0 , map ("foo" , "bar" ), Document .DocumentState .LOCAL_MUTATIONS ));
290
290
assertContains (doc ("foo/bar" , 0 , map ("foo" , "bar" ), Document .DocumentState .LOCAL_MUTATIONS ));
@@ -804,14 +804,16 @@ public void testPinsDocumentsInTheLocalView() {
804
804
assertContains (doc ("foo/bar" , 1 , map ("foo" , "bar" )));
805
805
assertContains (doc ("foo/baz" , 0 , map ("foo" , "baz" ), Document .DocumentState .LOCAL_MUTATIONS ));
806
806
807
- notifyLocalViewChanges (viewChanges (2 , asList ("foo/bar" , "foo/baz" ), emptyList ()));
807
+ notifyLocalViewChanges (
808
+ viewChanges (2 , /* synced= */ false , asList ("foo/bar" , "foo/baz" ), emptyList ()));
808
809
applyRemoteEvent (updateRemoteEvent (doc ("foo/bar" , 1 , map ("foo" , "bar" )), none , two ));
809
810
applyRemoteEvent (updateRemoteEvent (doc ("foo/baz" , 2 , map ("foo" , "baz" )), two , none ));
810
811
acknowledgeMutation (2 );
811
812
assertContains (doc ("foo/bar" , 1 , map ("foo" , "bar" )));
812
813
assertContains (doc ("foo/baz" , 2 , map ("foo" , "baz" )));
813
814
814
- notifyLocalViewChanges (viewChanges (2 , emptyList (), asList ("foo/bar" , "foo/baz" )));
815
+ notifyLocalViewChanges (
816
+ viewChanges (2 , /* synced= */ true , emptyList (), asList ("foo/bar" , "foo/baz" )));
815
817
releaseQuery (query );
816
818
817
819
assertNotContains ("foo/bar" );
0 commit comments