summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kinney <michaelakinney@comcast.net>2021-02-22 15:58:03 -0500
committerMichael Kinney <michaelakinney@comcast.net>2021-02-22 15:58:03 -0500
commitd46ecdad8976590b0f2bf3f58b50c2853d9250c9 (patch)
tree6f5cf6d8889e25f7a1d7683ab9e96ec720fcb545
parent9ecca0623db342f6d9d710e91a88875ad193ecc3 (diff)
downloadsdl_ios-d46ecdad8976590b0f2bf3f58b50c2853d9250c9.tar.gz
update unnecessary iap transport tests since functionality moved into iap session code
-rw-r--r--SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPTransportSpec.m46
1 files changed, 0 insertions, 46 deletions
diff --git a/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPTransportSpec.m b/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPTransportSpec.m
index f6a0f9aaa..92c932432 100644
--- a/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPTransportSpec.m
+++ b/SmartDeviceLinkTests/TransportSpecs/iAP/SDLIAPTransportSpec.m
@@ -137,52 +137,6 @@ describe(@"SDLIAPTransport", ^{
expect(transport.transportDestroyed).to(beFalse());
});
});
-
- context(@"When a data session is open", ^{
- __block SDLIAPDataSession *mockDataSession = nil;
-
- beforeEach(^{
- mockDataSession = OCMStrictClassMock([SDLIAPDataSession class]);
- OCMStub([mockDataSession isSessionInProgress]).andReturn(YES);
- OCMStub([mockDataSession connectionID]).andReturn(mockAccessory.connectionID);
- transport.dataSession = mockDataSession;
- transport.controlSession = nil;
- });
-
- it(@"It should cleanup on disconnect, close and destroy data session, and notify the lifecycle manager that the transport disconnected", ^{
-
- [[NSNotificationCenter defaultCenter] postNotification:accessoryDisconnectedNotification];
-
- expect(transport.retryCounter).toEventually(equal(0));
- expect(transport.sessionSetupInProgress).toEventually(beFalse());
- expect(transport.transportDestroyed).toEventually(beTrue());
-
- OCMVerify([mockTransportDelegate onTransportDisconnected]);
- });
- });
-
- describe(@"When a control session is open", ^{
- __block SDLIAPControlSession *mockControlSession = nil;
-
- beforeEach(^{
- mockControlSession = OCMStrictClassMock([SDLIAPControlSession class]);
- OCMStub([mockControlSession isSessionInProgress]).andReturn(YES);
- OCMStub([mockControlSession connectionID]).andReturn(mockAccessory.connectionID);
- transport.controlSession = mockControlSession;
- transport.dataSession = nil;
- });
-
- it(@"It should cleanup on disconnect, close and destroy data session, and should not tell the delegate that the transport closed", ^{
-
- [[NSNotificationCenter defaultCenter] postNotification:accessoryDisconnectedNotification];
-
- expect(transport.retryCounter).toEventually(equal(0));
- expect(transport.sessionSetupInProgress).toEventually(beFalse());
- expect(transport.transportDestroyed).toEventually(beFalse());
-
- OCMReject([mockTransportDelegate onTransportDisconnected]);
- });
- });
});
});