diff options
author | Gil <mcg@google.com> | 2018-02-22 08:12:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 08:12:54 -0800 |
commit | 935f3ca7d749f96c7207236a39c57f32a02c05d3 (patch) | |
tree | 94ac8094c8d10893f137325d5dc820e759dc6f90 /Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm | |
parent | 6ce954a791a73abc8d32765e2695ed153e120c47 (diff) |
Avoid wrapping and rewrapping NSStrings when constructing DatabaseId (#833)
* Avoid wrapping and rewrapping NSStrings when constructing DatabaseId
* Shorten DatabaseId::kDefaultDatabaseId
Diffstat (limited to 'Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm')
-rw-r--r-- | Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm index e34b2a5..3c80d16 100644 --- a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm +++ b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm @@ -140,13 +140,12 @@ NS_ASSUME_NONNULL_BEGIN FIRSetLoggerLevel(FIRLoggerLevelDebug); // HACK: FIRFirestore expects a non-nil app, but for tests we cheat. FIRApp *app = nil; - FIRFirestore *firestore = [[FIRFirestore alloc] - initWithProjectID:projectID - database:util::WrapNSStringNoCopy(DatabaseId::kDefaultDatabaseId) - persistenceKey:persistenceKey - credentialsProvider:credentialsProvider - workerDispatchQueue:workerDispatchQueue - firebaseApp:app]; + FIRFirestore *firestore = [[FIRFirestore alloc] initWithProjectID:util::MakeStringView(projectID) + database:DatabaseId::kDefault + persistenceKey:persistenceKey + credentialsProvider:credentialsProvider + workerDispatchQueue:workerDispatchQueue + firebaseApp:app]; firestore.settings = [FSTIntegrationTestCase settings]; |