aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Core/FSTQueryTests.mm
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-02-22 08:12:54 -0800
committerGravatar GitHub <noreply@github.com>2018-02-22 08:12:54 -0800
commit935f3ca7d749f96c7207236a39c57f32a02c05d3 (patch)
tree94ac8094c8d10893f137325d5dc820e759dc6f90 /Firestore/Example/Tests/Core/FSTQueryTests.mm
parent6ce954a791a73abc8d32765e2695ed153e120c47 (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/Core/FSTQueryTests.mm')
-rw-r--r--Firestore/Example/Tests/Core/FSTQueryTests.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Firestore/Example/Tests/Core/FSTQueryTests.mm b/Firestore/Example/Tests/Core/FSTQueryTests.mm
index 8acefb5..c0b2cd9 100644
--- a/Firestore/Example/Tests/Core/FSTQueryTests.mm
+++ b/Firestore/Example/Tests/Core/FSTQueryTests.mm
@@ -309,7 +309,6 @@ NS_ASSUME_NONNULL_BEGIN
[query queryByAddingSortOrder:[FSTSortOrder sortOrderWithFieldPath:FSTTestFieldPath(@"sort")
ascending:YES]];
- NSString *defaultDatabaseID = util::WrapNSStringNoCopy(DatabaseId::kDefaultDatabaseId);
// clang-format off
NSArray<FSTDocument *> *docs = @[
FSTTestDoc(@"collection/1", 0, @{@"sort": [NSNull null]}, NO),
@@ -326,7 +325,7 @@ NS_ASSUME_NONNULL_BEGIN
FSTTestDoc(@"collection/1", 0, @{@"sort": @"ab"}, NO),
FSTTestDoc(@"collection/1", 0, @{@"sort": @"b"}, NO),
FSTTestDoc(@"collection/1", 0, @{@"sort":
- FSTTestRef(@"project", defaultDatabaseID, @"collection/id1")}, NO),
+ FSTTestRef("project", DatabaseId::kDefault, @"collection/id1")}, NO),
];
// clang-format on