CloudKitKeychainSyncingMockXCTest.h [plain text]
#import "CloudKitMockXCTest.h"
#import "keychain/ckks/CKKS.h"
#import "keychain/ckks/CKKSCurrentKeyPointer.h"
@class CKKSKey;
@class CKKSCurrentKeyPointer;
@interface ZoneKeys : CKKSCurrentKeySet
@property CKKSKey* rolledTLK;
@end
@interface CloudKitKeychainSyncingMockXCTest : CloudKitMockXCTest
@property id mockCKKSKey;
@property NSMutableDictionary<CKRecordZoneID*, ZoneKeys*>* keys;
- (ZoneKeys*)createFakeKeyHierarchy: (CKRecordZoneID*)zoneID oldTLK:(CKKSKey*) oldTLK;
- (void)saveFakeKeyHierarchyToLocalDatabase: (CKRecordZoneID*)zoneID;
- (void)putFakeKeyHierarchyInCloudKit: (CKRecordZoneID*)zoneID;
- (void)saveTLKMaterialToKeychain: (CKRecordZoneID*)zoneID;
- (void)deleteTLKMaterialFromKeychain: (CKRecordZoneID*)zoneID;
- (void)saveTLKMaterialToKeychainSimulatingSOS: (CKRecordZoneID*)zoneID;
- (void)SOSPiggyBackAddToKeychain:(NSDictionary*)piggydata;
- (NSMutableDictionary*)SOSPiggyBackCopyFromKeychain;
- (NSMutableArray<NSData *>*) SOSPiggyICloudIdentities;
- (void)saveClassKeyMaterialToKeychain: (CKRecordZoneID*)zoneID;
- (void)createAndSaveFakeKeyHierarchy: (CKRecordZoneID*)zoneID;
- (void)rollFakeKeyHierarchyInCloudKit: (CKRecordZoneID*)zoneID;
- (NSDictionary*)fakeRecordDictionary:(NSString*) account zoneID:(CKRecordZoneID*)zoneID;
- (CKRecord*)createFakeRecord: (CKRecordZoneID*)zoneID recordName:(NSString*)recordName ;
- (CKRecord*)createFakeRecord: (CKRecordZoneID*)zoneID recordName:(NSString*)recordName withAccount: (NSString*) account;
- (CKRecord*)createFakeRecord: (CKRecordZoneID*)zoneID recordName:(NSString*)recordName withAccount: (NSString*) account key:(CKKSKey*)key;
- (CKRecord*)newRecord: (CKRecordID*) recordID withNewItemData:(NSDictionary*) dictionary;
- (CKRecord*)newRecord: (CKRecordID*) recordID withNewItemData:(NSDictionary*) dictionary key:(CKKSKey*)key;
- (NSDictionary*)decryptRecord: (CKRecord*) record;
- (void)addGenericPassword: (NSString*) password account: (NSString*) account;
- (void)addGenericPassword: (NSString*) password account: (NSString*) account viewHint:(NSString*)viewHint;
- (void)addGenericPassword: (NSString*) password account: (NSString*) account viewHint: (NSString*) viewHint access:(NSString*)access expecting: (OSStatus) status message: (NSString*) message;
- (void)addGenericPassword: (NSString*) password account: (NSString*) account expecting: (OSStatus) status message: (NSString*) message;
- (void)updateGenericPassword: (NSString*) newPassword account: (NSString*)account;
- (void)updateAccountOfGenericPassword:(NSString*)newAccount account:(NSString*)account;
- (void)checkNoCKKSData: (CKKSKeychainView*) view;
- (void)deleteGenericPassword: (NSString*) account;
- (void)findGenericPassword: (NSString*) account expecting: (OSStatus) status;
- (void)checkGenericPassword: (NSString*) password account: (NSString*) account;
- (void)createClassCItemAndWaitForUpload:(CKRecordZoneID*)zoneID account:(NSString*)account;
- (void)createClassAItemAndWaitForUpload:(CKRecordZoneID*)zoneID account:(NSString*)account;
- (BOOL (^) (CKRecord*)) checkClassABlock: (CKRecordZoneID*) zoneID message:(NSString*) message;
- (BOOL (^) (CKRecord*)) checkClassCBlock: (CKRecordZoneID*) zoneID message:(NSString*) message;
- (BOOL (^) (CKRecord*)) checkPasswordBlock:(CKRecordZoneID*)zoneID
account:(NSString*)account
password:(NSString*)password;
- (void)checkNSyncableTLKsInKeychain:(size_t)n;
-(XCTestExpectation*)expectChangeForView:(NSString*)view;
@end