summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/TestUtilities/TestConnectionManager.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLinkTests/TestUtilities/TestConnectionManager.m')
-rw-r--r--SmartDeviceLinkTests/TestUtilities/TestConnectionManager.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/SmartDeviceLinkTests/TestUtilities/TestConnectionManager.m b/SmartDeviceLinkTests/TestUtilities/TestConnectionManager.m
index bd9bd939d..adb494fb6 100644
--- a/SmartDeviceLinkTests/TestUtilities/TestConnectionManager.m
+++ b/SmartDeviceLinkTests/TestUtilities/TestConnectionManager.m
@@ -19,18 +19,22 @@ NS_ASSUME_NONNULL_BEGIN
if (!self) {
return nil;
}
-
+
_receivedRequests = [NSMutableArray<__kindof SDLRPCRequest *> array];
return self;
}
-- (void)sendManagerRequest:(__kindof SDLRPCRequest *)request withResponseHandler:(nullable SDLResponseHandler)handler {
+- (void)sendConnectionRequest:(__kindof SDLRPCRequest *)request withResponseHandler:(nullable SDLResponseHandler)handler {
self.lastRequestBlock = handler;
request.correlationID = [self test_nextCorrelationID];
[self.receivedRequests addObject:request];
}
+- (void)sendConnectionManagerRequest:(__kindof SDLRPCRequest *)request withResponseHandler:(nullable SDLResponseHandler)handler {
+ [self sendConnectionRequest:request withResponseHandler:handler];
+}
+
- (void)respondToLastRequestWithResponse:(__kindof SDLRPCResponse *)response {
[self respondToLastRequestWithResponse:response error:nil];
}