diff options
author | zxu <zxu@google.com> | 2018-04-25 14:13:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 14:13:57 -0400 |
commit | ff32b59036f35512c64fcd75ae5cee8aca228929 (patch) | |
tree | 9b09fff01e1ce3546c25f162f703b782c9fbca61 /Firestore/Example/Tests/Integration | |
parent | f9bd6d3c9491dddbfc9cbe0fcc633030a66fe9da (diff) |
Port `SnapshotVersion` for `Remote` (#1174)
* no-brainer replace FSTSnapshotVersion by SnapshotVersion in `Remote`
* delete `FSTSnapshotVersion` in `Remote`
* fix test
* partially revert RemoteEvent
* Revert "partially revert RemoteEvent"
This reverts commit 67e35bb6c11eaf79608df8d02a60788a40331d0f.
* fix a bug
* fix integration
* address changes
Diffstat (limited to 'Firestore/Example/Tests/Integration')
-rw-r--r-- | Firestore/Example/Tests/Integration/FSTStreamTests.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Firestore/Example/Tests/Integration/FSTStreamTests.mm b/Firestore/Example/Tests/Integration/FSTStreamTests.mm index 7e37913..2e5c9b6 100644 --- a/Firestore/Example/Tests/Integration/FSTStreamTests.mm +++ b/Firestore/Example/Tests/Integration/FSTStreamTests.mm @@ -29,12 +29,14 @@ #include "Firestore/core/src/firebase/firestore/auth/empty_credentials_provider.h" #include "Firestore/core/src/firebase/firestore/core/database_info.h" #include "Firestore/core/src/firebase/firestore/model/database_id.h" +#include "Firestore/core/src/firebase/firestore/model/snapshot_version.h" #include "Firestore/core/src/firebase/firestore/util/string_apple.h" namespace util = firebase::firestore::util; using firebase::firestore::auth::EmptyCredentialsProvider; using firebase::firestore::core::DatabaseInfo; using firebase::firestore::model::DatabaseId; +using firebase::firestore::model::SnapshotVersion; /** Exposes otherwise private methods for testing. */ @interface FSTStream (Testing) @@ -101,13 +103,13 @@ using firebase::firestore::model::DatabaseId; } - (void)watchStreamDidChange:(FSTWatchChange *)change - snapshotVersion:(FSTSnapshotVersion *)snapshotVersion { + snapshotVersion:(const SnapshotVersion &)snapshotVersion { [_states addObject:@"watchStreamDidChange"]; [_expectation fulfill]; _expectation = nil; } -- (void)writeStreamDidReceiveResponseWithVersion:(FSTSnapshotVersion *)commitVersion +- (void)writeStreamDidReceiveResponseWithVersion:(const SnapshotVersion &)commitVersion mutationResults:(NSArray<FSTMutationResult *> *)results { [_states addObject:@"writeStreamDidReceiveResponseWithVersion"]; [_expectation fulfill]; |