File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
firebase-firestore/src/androidTest/java/com/google/firebase/firestore Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1304,8 +1304,10 @@ public void testCanGetDocumentWithMemoryLruGCEnabled() {
1304
1304
FirebaseFirestore db = testFirestore ();
1305
1305
db .setFirestoreSettings (
1306
1306
new FirebaseFirestoreSettings .Builder (db .getFirestoreSettings ())
1307
- .setPersistenceEnabled (false )
1308
- .setMemoryLruGcEnabled (true )
1307
+ .setLocalCacheSettings (
1308
+ MemoryCacheSettings .newBuilder ()
1309
+ .setGcSettings (MemoryLruGcSettings .newBuilder ().build ())
1310
+ .build ())
1309
1311
.build ());
1310
1312
1311
1313
DocumentReference doc = db .collection ("abc" ).document ("123" );
@@ -1322,8 +1324,10 @@ public void testCannotGetDocumentWithMemoryEagerGcEnabled() {
1322
1324
FirebaseFirestore db = testFirestore ();
1323
1325
db .setFirestoreSettings (
1324
1326
new FirebaseFirestoreSettings .Builder (db .getFirestoreSettings ())
1325
- .setPersistenceEnabled (false )
1326
- .setMemoryLruGcEnabled (false )
1327
+ .setLocalCacheSettings (
1328
+ MemoryCacheSettings .newBuilder ()
1329
+ .setGcSettings (MemoryEagerGcSettings .newBuilder ().build ())
1330
+ .build ())
1327
1331
.build ());
1328
1332
1329
1333
DocumentReference doc = db .collection ("abc" ).document ("123" );
You can’t perform that action at this time.
0 commit comments