5 // Created by Michael Brouwer on 9/28/12.
9 #ifndef _SEC_SOSTestDataSource_H_
10 #define _SEC_SOSTestDataSource_H_
12 #include <SecureObjectSync/SOSAccount.h>
15 // MARK: Data Source Functions
17 SOSDataSourceRef
SOSTestDataSourceCreate(void);
19 CFMutableDictionaryRef
SOSTestDataSourceGetDatabase(SOSDataSourceRef data_source
);
21 SOSMergeResult
SOSTestDataSourceAddObject(SOSDataSourceRef data_source
, SOSObjectRef object
, CFErrorRef
*error
);
22 bool SOSTestDataSourceDeleteObject(SOSDataSourceRef data_source
, CFDataRef key
, CFErrorRef
*error
);
25 // MARK: Data Source Factory Functions
28 SOSDataSourceFactoryRef
SOSTestDataSourceFactoryCreate(void);
29 void SOSTestDataSourceFactoryAddDataSource(SOSDataSourceFactoryRef factory
, CFStringRef name
, SOSDataSourceRef ds
);
31 SOSObjectRef
SOSDataSourceCreateGenericItemWithData(SOSDataSourceRef ds
, CFStringRef account
, CFStringRef service
, bool is_tomb
, CFDataRef data
);
32 SOSObjectRef
SOSDataSourceCreateGenericItem(SOSDataSourceRef ds
, CFStringRef account
, CFStringRef service
);
34 #endif /* _SEC_SOSTestDataSource_H_ */