2020-07-06 11:59:58 +00:00
|
|
|
//
|
|
|
|
// NSXPCConnectionMock.m
|
|
|
|
// Security_ios
|
|
|
|
//
|
|
|
|
// Created by Love Hörnquist Åstrand on 12/16/18.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "NSXPCConnectionMock.h"
|
|
|
|
|
|
|
|
@interface NSXPCConnectionMock ()
|
|
|
|
@property id reality;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation NSXPCConnectionMock
|
|
|
|
- (instancetype) initWithRealObject:(id)reality
|
|
|
|
{
|
2022-12-13 03:51:23 +00:00
|
|
|
if ((self = [super init])) {
|
2020-07-06 11:59:58 +00:00
|
|
|
_reality = reality;
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
- (id)remoteObjectProxyWithErrorHandler:(void(^)(NSError * _Nonnull error))failureHandler
|
|
|
|
{
|
|
|
|
(void)failureHandler;
|
|
|
|
return _reality;
|
|
|
|
}
|
|
|
|
- (id)synchronousRemoteObjectProxyWithErrorHandler:(void(^)(NSError * _Nonnull error))failureHandler
|
|
|
|
{
|
|
|
|
(void)failureHandler;
|
|
|
|
return _reality;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|