@@ -386,12 +386,7 @@ public void testHandlesSetMutationThenDocument() {
386
386
Query query = query ("foo" );
387
387
int targetId = allocateQuery (query );
388
388
applyRemoteEvent (
389
- updateRemoteEvent (
390
- doc ("foo/bar" , 2 , map ("it" , "changed" )).setHasLocalMutations (),
391
- asList (targetId ),
392
- emptyList (),
393
- asList (targetId ),
394
- version (2 )));
389
+ updateRemoteEvent (doc ("foo/bar" , 2 , map ("it" , "changed" )), asList (targetId ), emptyList ()));
395
390
assertChanged (doc ("foo/bar" , 2 , map ("foo" , "bar" )).setHasLocalMutations ());
396
391
assertContains (doc ("foo/bar" , 2 , map ("foo" , "bar" )).setHasLocalMutations ());
397
392
}
@@ -549,11 +544,7 @@ public void testHandlesPatchMutationThenDocumentThenAck() {
549
544
Query query = query ("foo" );
550
545
int targetId = allocateQuery (query );
551
546
applyRemoteEvent (
552
- addedRemoteEvent (
553
- asList (doc ("foo/bar" , 1 , map ("it" , "base" )).setHasLocalMutations ()),
554
- asList (targetId ),
555
- emptyList (),
556
- version (1 )));
547
+ addedRemoteEvent (doc ("foo/bar" , 1 , map ("it" , "base" )), asList (targetId ), emptyList ()));
557
548
assertChanged (doc ("foo/bar" , 1 , map ("foo" , "bar" , "it" , "base" )).setHasLocalMutations ());
558
549
assertContains (doc ("foo/bar" , 1 , map ("foo" , "bar" , "it" , "base" )).setHasLocalMutations ());
559
550
@@ -693,11 +684,7 @@ public void testHandlesSetMutationThenPatchMutationThenDocumentThenAckThenAck()
693
684
int targetId = allocateQuery (query );
694
685
applyRemoteEvent (
695
686
updateRemoteEvent (
696
- doc ("foo/bar" , 1 , map ("it" , "base" )).setHasLocalMutations (),
697
- asList (targetId ),
698
- emptyList (),
699
- asList (targetId ),
700
- version (1 )));
687
+ doc ("foo/bar" , 1 , map ("it" , "base" )), asList (targetId ), emptyList (), asList (targetId )));
701
688
assertChanged (doc ("foo/bar" , 1 , map ("foo" , "bar" )).setHasLocalMutations ());
702
689
assertContains (doc ("foo/bar" , 1 , map ("foo" , "bar" )).setHasLocalMutations ());
703
690
@@ -1119,8 +1106,7 @@ public void testUsesTargetMappingToExecuteQueries() {
1119
1106
addedRemoteEvent (
1120
1107
asList (doc ("foo/a" , 10 , map ("matches" , true )), doc ("foo/b" , 10 , map ("matches" , true ))),
1121
1108
asList (targetId ),
1122
- emptyList (),
1123
- version (10 )));
1109
+ emptyList ()));
1124
1110
applyRemoteEvent (noChangeEvent (targetId , 10 ));
1125
1111
updateViews (targetId , /* fromCache= */ false );
1126
1112
@@ -1143,10 +1129,7 @@ public void testIgnoresTargetMappingAfterExistenceFilterMismatch() {
1143
1129
// Persist a mapping with a single document
1144
1130
applyRemoteEvent (
1145
1131
addedRemoteEvent (
1146
- asList (doc ("foo/a" , 10 , map ("matches" , true ))),
1147
- asList (targetId ),
1148
- emptyList (),
1149
- version (10 )));
1132
+ asList (doc ("foo/a" , 10 , map ("matches" , true ))), asList (targetId ), emptyList ()));
1150
1133
applyRemoteEvent (noChangeEvent (targetId , 10 ));
1151
1134
updateViews (targetId , /* fromCache= */ false );
1152
1135
@@ -1249,8 +1232,7 @@ public void testQueriesIncludeDocumentsFromOtherQueries() {
1249
1232
addedRemoteEvent (
1250
1233
asList (doc ("foo/a" , 10 , map ("matches" , true )), doc ("foo/b" , 20 , map ("matches" , true ))),
1251
1234
asList (targetId ),
1252
- emptyList (),
1253
- version (20 )));
1235
+ emptyList ()));
1254
1236
releaseTarget (targetId );
1255
1237
1256
1238
// Run the original query again and ensure that both the original matches as well as all new
@@ -1275,8 +1257,7 @@ public void testQueriesFilterDocumentsThatNoLongerMatch() {
1275
1257
addedRemoteEvent (
1276
1258
asList (doc ("foo/a" , 10 , map ("matches" , true )), doc ("foo/b" , 10 , map ("matches" , true ))),
1277
1259
asList (targetId ),
1278
- emptyList (),
1279
- version (10 )));
1260
+ emptyList ()));
1280
1261
applyRemoteEvent (noChangeEvent (targetId , 10 ));
1281
1262
updateViews (targetId , /* fromCache=*/ false );
1282
1263
releaseTarget (targetId );
@@ -1288,8 +1269,7 @@ public void testQueriesFilterDocumentsThatNoLongerMatch() {
1288
1269
addedRemoteEvent (
1289
1270
asList (doc ("foo/a" , 10 , map ("matches" , true )), doc ("foo/b" , 20 , map ("matches" , false ))),
1290
1271
asList (targetId ),
1291
- emptyList (),
1292
- version (20 )));
1272
+ emptyList ()));
1293
1273
releaseTarget (targetId );
1294
1274
1295
1275
// Re-run the filtered query and verify that the modified document is no longer returned.
@@ -1613,8 +1593,7 @@ public void testOnlyPersistsUpdatesForDocumentsWhenVersionChanges() {
1613
1593
addedRemoteEvent (
1614
1594
asList (doc ("foo/bar" , 1 , map ("val" , "new" )), doc ("foo/baz" , 2 , map ("val" , "new" ))),
1615
1595
asList (2 ),
1616
- emptyList (),
1617
- version (2 )));
1596
+ emptyList ()));
1618
1597
1619
1598
assertChanged (doc ("foo/baz" , 2 , map ("val" , "new" )));
1620
1599
// The update for foo/bar is ignored.
0 commit comments