summaryrefslogtreecommitdiff
path: root/test/components/protocol_handler/include/protocol_handler/protocol_handler_tm_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/components/protocol_handler/include/protocol_handler/protocol_handler_tm_test.h')
-rw-r--r--test/components/protocol_handler/include/protocol_handler/protocol_handler_tm_test.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/components/protocol_handler/include/protocol_handler/protocol_handler_tm_test.h b/test/components/protocol_handler/include/protocol_handler/protocol_handler_tm_test.h
index 51c9732197..9a8998081b 100644
--- a/test/components/protocol_handler/include/protocol_handler/protocol_handler_tm_test.h
+++ b/test/components/protocol_handler/include/protocol_handler/protocol_handler_tm_test.h
@@ -369,13 +369,16 @@ TEST_F(ProtocolHandlerImplTest,SecurityEnable_StartSessionProtected_SSLInitializ
//emulate SSL is initilized
WillOnce(Return(true));
+ // Expect service protection enable
+ EXPECT_CALL(session_observer_mock,
+ SetProtectionFlag(connection_key, start_service));
+
// expect send Ack with PROTECTION_ON (on SSL is initilized)
EXPECT_CALL(transport_manager_mock,
SendMessageToDevice(ControlMessage(FRAME_DATA_START_SERVICE_ACK, PROTECTION_ON))).
WillOnce(Return(E_SUCCESS));
SendControlMessage(PROTECTION_ON, start_service, NEW_SESSION_ID, FRAME_DATA_START_SERVICE);
-
}
/*
* ProtocolHandler shall send Ack with PROTECTION_OFF on session handshhake fail
@@ -470,7 +473,7 @@ TEST_F(ProtocolHandlerImplTest, SecurityEnable_StartSessionProtected_HandshakeSu
// emulate protection for service is not enabled
WillOnce(ReturnNull());
- // On success handshake mark service as protected
+ // Expect service protection enable
EXPECT_CALL(session_observer_mock,
SetProtectionFlag(connection_key, start_service));
@@ -525,7 +528,7 @@ TEST_F(ProtocolHandlerImplTest,
// emulate protection for service is not enabled
WillOnce(ReturnNull());
- // On success handshake mark service as protected
+ // Expect service protection enable
EXPECT_CALL(session_observer_mock,
SetProtectionFlag(connection_key, start_service));
@@ -584,7 +587,7 @@ TEST_F(ProtocolHandlerImplTest,
// emulate protection for service is not enabled
WillOnce(ReturnNull());
- // On success handshake mark service as protected
+ // Expect service protection enable
EXPECT_CALL(session_observer_mock,
SetProtectionFlag(connection_key, start_service));