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.
31 lines
597 B
Matlab
31 lines
597 B
Matlab
7 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "MockEnvironment.h"
|
||
|
#import <SignalMessaging/OWSPreferences.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@implementation MockEnvironment
|
||
|
|
||
|
+ (MockEnvironment *)activate
|
||
|
{
|
||
|
MockEnvironment *instance = [MockEnvironment new];
|
||
|
[self setShared:instance];
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
- (instancetype)init
|
||
|
{
|
||
|
// TODO: We should probably mock this out.
|
||
|
OWSPreferences *preferences = [OWSPreferences new];
|
||
|
self = [super initWithPreferences:preferences];
|
||
|
OWSAssertDebug(self);
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|