diff options
Diffstat (limited to 'Firestore/Example/Tests/SpecTests/FSTSyncEngineTestDriver.h')
-rw-r--r-- | Firestore/Example/Tests/SpecTests/FSTSyncEngineTestDriver.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Firestore/Example/Tests/SpecTests/FSTSyncEngineTestDriver.h b/Firestore/Example/Tests/SpecTests/FSTSyncEngineTestDriver.h index f3d9a5d..ac44cb5 100644 --- a/Firestore/Example/Tests/SpecTests/FSTSyncEngineTestDriver.h +++ b/Firestore/Example/Tests/SpecTests/FSTSyncEngineTestDriver.h @@ -16,6 +16,7 @@ #import <Foundation/Foundation.h> +#include <map> #include <unordered_map> #import "Firestore/Source/Core/FSTTypes.h" @@ -23,6 +24,7 @@ #import "Firestore/Source/Util/FSTDispatchQueue.h" #include "Firestore/core/src/firebase/firestore/auth/user.h" +#include "Firestore/core/src/firebase/firestore/model/document_key.h" @class FSTDocumentKey; @class FSTMutation; @@ -242,6 +244,10 @@ typedef std::unordered_map<firebase::firestore::auth::User, */ - (NSArray<FSTQueryEvent *> *)capturedEventsSinceLastCall; +/** The current set of documents in limbo. */ +- (std::map<firebase::firestore::model::DocumentKey, firebase::firestore::model::TargetId>) + currentLimboDocuments; + /** * The writes that have been sent to the FSTSyncEngine via writeUserMutation: but not yet * acknowledged by calling receiveWriteAck/Error:. They are tracked per-user. @@ -263,10 +269,6 @@ typedef std::unordered_map<firebase::firestore::auth::User, /** The current user for the FSTSyncEngine; determines which mutation queue is active. */ @property(nonatomic, assign, readonly) const firebase::firestore::auth::User ¤tUser; -/** The current set of documents in limbo. */ -@property(nonatomic, strong, readonly) - NSDictionary<FSTDocumentKey *, FSTBoxedTargetID *> *currentLimboDocuments; - /** The expected set of documents in limbo. */ @property(nonatomic, strong, readwrite) NSSet<FSTDocumentKey *> *expectedLimboDocuments; |