aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/API/FIRFieldPathTests.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Example/Tests/API/FIRFieldPathTests.mm')
-rw-r--r--Firestore/Example/Tests/API/FIRFieldPathTests.mm11
1 files changed, 7 insertions, 4 deletions
diff --git a/Firestore/Example/Tests/API/FIRFieldPathTests.mm b/Firestore/Example/Tests/API/FIRFieldPathTests.mm
index 679ea89..50d37c1 100644
--- a/Firestore/Example/Tests/API/FIRFieldPathTests.mm
+++ b/Firestore/Example/Tests/API/FIRFieldPathTests.mm
@@ -19,10 +19,13 @@
#import <XCTest/XCTest.h>
#import "Firestore/Source/API/FIRFieldPath+Internal.h"
-#import "Firestore/Source/Model/FSTPath.h"
#import "Firestore/Example/Tests/Util/FSTHelpers.h"
+#include "Firestore/core/test/firebase/firestore/testutil/testutil.h"
+
+namespace testutil = firebase::firestore::testutil;
+
NS_ASSUME_NONNULL_BEGIN
@interface FIRFieldPathTests : XCTestCase
@@ -31,9 +34,9 @@ NS_ASSUME_NONNULL_BEGIN
@implementation FIRFieldPathTests
- (void)testEquals {
- FIRFieldPath *foo = [[FIRFieldPath alloc] initPrivate:FSTTestFieldPath(@"foo.ooo.oooo")];
- FIRFieldPath *fooDup = [[FIRFieldPath alloc] initPrivate:FSTTestFieldPath(@"foo.ooo.oooo")];
- FIRFieldPath *bar = [[FIRFieldPath alloc] initPrivate:FSTTestFieldPath(@"baa.aaa.aaar")];
+ FIRFieldPath *foo = [[FIRFieldPath alloc] initPrivate:testutil::Field("foo.ooo.oooo")];
+ FIRFieldPath *fooDup = [[FIRFieldPath alloc] initPrivate:testutil::Field("foo.ooo.oooo")];
+ FIRFieldPath *bar = [[FIRFieldPath alloc] initPrivate:testutil::Field("baa.aaa.aaar")];
XCTAssertEqualObjects(foo, fooDup);
XCTAssertNotEqualObjects(foo, bar);