@@ -1269,24 +1269,16 @@ TEST_F(FirestoreIntegrationTest, MaintainsPersistenceAfterRestarting) {
1269
1269
EXPECT_TRUE (snap->exists ());
1270
1270
}
1271
1271
1272
- // TODO(b/173730469) Enable this test on Android once the Auth issue is fixed.
1273
- #if !defined(__ANDROID__)
1274
1272
TEST_F (FirestoreIntegrationTest, RestartFirestoreLeadsToNewInstance) {
1275
1273
// Get App and Settings objects to use in the test.
1276
1274
Firestore* db_template = TestFirestore (" restart_firestore_new_instance_test" );
1277
1275
App* app = db_template->app ();
1278
1276
Settings settings = db_template->settings ();
1279
1277
DeleteFirestore (db_template);
1280
1278
1281
- // Get the Auth object so that it can be explicitly deleted to avoid a leak.
1282
- // This memory leak avoidance hack can be removed once Auth becomes a soft
1283
- // dependency (b/147772264).
1284
- InitResult init_result;
1285
- Auth* auth = Auth::GetAuth (app, &init_result);
1286
- ASSERT_EQ (kInitResultSuccess , init_result);
1287
-
1288
1279
// Verify that GetInstance() returns the same instance when specified the same
1289
1280
// App.
1281
+ InitResult init_result;
1290
1282
Firestore* db1 = Firestore::GetInstance (app, &init_result);
1291
1283
ASSERT_EQ (kInitResultSuccess , init_result);
1292
1284
Firestore* db1_copy = Firestore::GetInstance (app, &init_result);
@@ -1318,9 +1310,7 @@ TEST_F(FirestoreIntegrationTest, RestartFirestoreLeadsToNewInstance) {
1318
1310
1319
1311
delete db2;
1320
1312
delete db1;
1321
- delete auth;
1322
1313
}
1323
- #endif // if !defined(__ANDROID__)
1324
1314
1325
1315
TEST_F (FirestoreIntegrationTest, CanStopListeningAfterTerminate) {
1326
1316
auto instance = TestFirestore ();
0 commit comments