diff options
author | Sebastian Schmidt <mrschmidt@google.com> | 2017-11-09 14:43:53 -0800 |
---|---|---|
committer | Sebastian Schmidt <mrschmidt@google.com> | 2017-11-09 17:51:21 -0800 |
commit | 110f0edf9d25887984fcdf12becb11a4661ad637 (patch) | |
tree | b65ffc470b32e1142ad42e016bfc18bae49722bf /Firestore | |
parent | 86f429b2f0061a9f16c42f83841d36813892232b (diff) |
Clang-formatting Storage
Diffstat (limited to 'Firestore')
-rw-r--r-- | Firestore/Example/Tests/SpecTests/FSTMockDatastore.h | 6 | ||||
-rw-r--r-- | Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/Firestore/Example/Tests/SpecTests/FSTMockDatastore.h b/Firestore/Example/Tests/SpecTests/FSTMockDatastore.h index 7ad0d18..f091a53 100644 --- a/Firestore/Example/Tests/SpecTests/FSTMockDatastore.h +++ b/Firestore/Example/Tests/SpecTests/FSTMockDatastore.h @@ -22,10 +22,12 @@ NS_ASSUME_NONNULL_BEGIN @interface FSTMockDatastore : FSTDatastore -/** A count of the total number of requests sent to the watch stream since the beginning of the test case. */ +/** A count of the total number of requests sent to the watch stream since the beginning of the test + * case. */ @property(nonatomic) int watchStreamRequestCount; -/** A count of the total number of requests sent to the write stream since the beginning of the test case. */ +/** A count of the total number of requests sent to the write stream since the beginning of the test + * case. */ @property(nonatomic) int writeStreamRequestCount; + (instancetype)mockDatastoreWithWorkerDispatchQueue:(FSTDispatchQueue *)workerDispatchQueue; diff --git a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm index 92e4dc2..4bfdb41 100644 --- a/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm +++ b/Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm @@ -16,8 +16,8 @@ #import "FSTIntegrationTestCase.h" -#import <Firestore/Firestore-umbrella.h> #import <FirebaseCommunity/FIRLogger.h> +#import <Firestore/Firestore-umbrella.h> #import <GRPCClient/GRPCCall+ChannelArg.h> #import <GRPCClient/GRPCCall+Tests.h> @@ -297,8 +297,8 @@ NS_ASSUME_NONNULL_BEGIN } } -extern "C" -NSArray<NSDictionary<NSString *, id> *> *FIRQuerySnapshotGetData(FIRQuerySnapshot *docs) { +extern "C" NSArray<NSDictionary<NSString *, id> *> *FIRQuerySnapshotGetData( + FIRQuerySnapshot *docs) { NSMutableArray<NSDictionary<NSString *, id> *> *result = [NSMutableArray array]; for (FIRDocumentSnapshot *doc in docs.documents) { [result addObject:doc.data]; @@ -306,8 +306,7 @@ NSArray<NSDictionary<NSString *, id> *> *FIRQuerySnapshotGetData(FIRQuerySnapsho return result; } -extern "C" -NSArray<NSString *> *FIRQuerySnapshotGetIDs(FIRQuerySnapshot *docs) { +extern "C" NSArray<NSString *> *FIRQuerySnapshotGetIDs(FIRQuerySnapshot *docs) { NSMutableArray<NSString *> *result = [NSMutableArray array]; for (FIRDocumentSnapshot *doc in docs.documents) { [result addObject:doc.documentID]; |