darling-security/SharedMocks/NSXPCConnectionMock.m
2022-12-12 19:51:23 -08:00

34 lines
672 B
Objective-C

//
// 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
{
if ((self = [super init])) {
_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