2 // OctagonTestHarnessXPCService.h
5 // Copyright (c) 2018 Apple Inc. All rights reserved.
8 #import <Foundation/Foundation.h>
9 #import "OctagonTestHarnessXPCService.h"
10 #import "OctagonTestHarnessXPCServiceDelegate.h"
11 #import "OctagonTestHarnessXPCServiceProtocol.h"
13 @implementation OctagonTestHarnessXPCServiceDelegate
15 - (BOOL)listener:(__unused NSXPCListener *)listener shouldAcceptNewConnection:(NSXPCConnection *)newConnection
18 newConnection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(OctagonTestHarnessXPCServiceProtocol)];
19 newConnection.exportedObject = [OctagonTestHarnessXPCService new];
21 [newConnection resume];