mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
C
51 lines
1.6 KiB
C
|
7 years ago
|
//
|
||
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "SSKEnvironment.h"
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
|
||
|
7 years ago
|
// 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;
|
||
|
7 years ago
|
@property (nonatomic) OWSMessageManager *messageManager;
|
||
|
|
@property (nonatomic) OWSBlockingManager *blockingManager;
|
||
|
|
@property (nonatomic) OWSIdentityManager *identityManager;
|
||
|
7 years ago
|
@property (nonatomic) id<OWSUDManager> udManager;
|
||
|
|
@property (nonatomic) OWSMessageDecrypter *messageDecrypter;
|
||
|
|
@property (nonatomic) OWSBatchMessageProcessor *batchMessageProcessor;
|
||
|
|
@property (nonatomic) OWSMessageReceiver *messageReceiver;
|
||
|
|
@property (nonatomic) TSSocketManager *socketManager;
|
||
|
|
@property (nonatomic) TSAccountManager *tsAccountManager;
|
||
|
|
@property (nonatomic) OWS2FAManager *ows2FAManager;
|
||
|
|
@property (nonatomic) OWSDisappearingMessagesJob *disappearingMessagesJob;
|
||
|
|
@property (nonatomic) ContactDiscoveryService *contactDiscoveryService;
|
||
|
|
@property (nonatomic) OWSReadReceiptManager *readReceiptManager;
|
||
|
|
@property (nonatomic) OWSOutgoingReceiptManager *outgoingReceiptManager;
|
||
|
7 years ago
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
#pragma mark -
|
||
|
|
|
||
|
7 years ago
|
@interface MockSSKEnvironment : SSKEnvironment
|
||
|
|
|
||
|
|
+ (void)activate;
|
||
|
|
|
||
|
|
- (instancetype)init;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
7 years ago
|
#endif
|
||
|
|
|
||
|
7 years ago
|
NS_ASSUME_NONNULL_END
|