40 lines
989 B
Objective-C
40 lines
989 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "SSKEnvironment.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// This should only be used in the tests.
|
|
#ifdef DEBUG
|
|
|
|
@interface SSKEnvironment (MockSSKEnvironment)
|
|
|
|
// Redeclare these properties as mutable so that tests can replace singletons.
|
|
@property (nonatomic) id<ContactsManagerProtocol> contactsManager;
|
|
@property (nonatomic) OWSMessageSender *messageSender;
|
|
@property (nonatomic) id<ProfileManagerProtocol> profileManager;
|
|
@property (nonatomic) OWSPrimaryStorage *primaryStorage;
|
|
@property (nonatomic) ContactsUpdater *contactsUpdater;
|
|
@property (nonatomic) TSNetworkManager *networkManager;
|
|
@property (nonatomic) OWSMessageManager *messageManager;
|
|
@property (nonatomic) OWSBlockingManager *blockingManager;
|
|
@property (nonatomic) OWSIdentityManager *identityManager;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@interface MockSSKEnvironment : SSKEnvironment
|
|
|
|
+ (void)activate;
|
|
|
|
- (instancetype)init;
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
NS_ASSUME_NONNULL_END
|