summaryrefslogtreecommitdiff
path: root/test/components
diff options
context:
space:
mode:
authorElisey Zamakhov <EZamakhov@luxoft.com>2014-07-14 17:13:01 +0400
committerElisey Zamakhov <EZamakhov@luxoft.com>2014-07-14 17:23:47 +0400
commitb88d85d013ba089ae13e1c6d981a9dbd84acc2cc (patch)
tree18f35a69c3498f43d598136050f4dc19bad6c852 /test/components
parent5cfc85f47b4034804e4f859c3638faa1a2c3a917 (diff)
downloadsdl_core-b88d85d013ba089ae13e1c6d981a9dbd84acc2cc.tar.gz
Fix APPLINK-8161
Fix wrong logger levels
Diffstat (limited to 'test/components')
-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));