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() {
13041304 FirebaseFirestore db = testFirestore ();
13051305 db .setFirestoreSettings (
13061306 new FirebaseFirestoreSettings .Builder (db .getFirestoreSettings ())
1307- .setPersistenceEnabled (false )
1308- .setMemoryLruGcEnabled (true )
1307+ .setLocalCacheSettings (
1308+ MemoryCacheSettings .newBuilder ()
1309+ .setGcSettings (MemoryLruGcSettings .newBuilder ().build ())
1310+ .build ())
13091311 .build ());
13101312
13111313 DocumentReference doc = db .collection ("abc" ).document ("123" );
@@ -1322,8 +1324,10 @@ public void testCannotGetDocumentWithMemoryEagerGcEnabled() {
13221324 FirebaseFirestore db = testFirestore ();
13231325 db .setFirestoreSettings (
13241326 new FirebaseFirestoreSettings .Builder (db .getFirestoreSettings ())
1325- .setPersistenceEnabled (false )
1326- .setMemoryLruGcEnabled (false )
1327+ .setLocalCacheSettings (
1328+ MemoryCacheSettings .newBuilder ()
1329+ .setGcSettings (MemoryEagerGcSettings .newBuilder ().build ())
1330+ .build ())
13271331 .build ());
13281332
13291333 DocumentReference doc = db .collection ("abc" ).document ("123" );
You can’t perform that action at this time.
0 commit comments