summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2018-06-15 12:22:43 +0300
committerAndrii Kalinich <AKalinich@luxoft.com>2018-06-18 22:26:35 +0300
commit919f8ed7303c59b5b99b834c190d861744eda5a4 (patch)
treef6eedc595055b43b8e5ea0e230689885a9c0f96a
parentf5c7dbb8433d65b41dd89472615fff18fabf26bc (diff)
downloadsdl_core-fix/fix_v5_protocol_messages_bson_params.tar.gz
Fix failed unit test after updated implementationfix/fix_v5_protocol_messages_bson_params
-rw-r--r--src/components/protocol_handler/test/protocol_handler_tm_test.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/protocol_handler/test/protocol_handler_tm_test.cc b/src/components/protocol_handler/test/protocol_handler_tm_test.cc
index 075b332345..23e4201968 100644
--- a/src/components/protocol_handler/test/protocol_handler_tm_test.cc
+++ b/src/components/protocol_handler/test/protocol_handler_tm_test.cc
@@ -623,6 +623,18 @@ TEST_F(ProtocolHandlerImplTest,
const ::transport_manager::ConnectionUID connection_id2 = 0xBu;
const uint8_t session_id2 = 2u;
+#ifdef ENABLE_SECURITY
+ AddSecurityManager();
+
+ EXPECT_CALL(session_observer_mock, KeyFromPair(connection_id2, session_id2))
+ .WillOnce(Return(connection_key));
+
+ EXPECT_CALL(session_observer_mock,
+ GetSSLContext(connection_key, start_service))
+ .Times(2)
+ .WillRepeatedly(ReturnNull());
+#endif // ENABLE_SECURITY
+
EXPECT_CALL(session_observer_mock, IsHeartBeatSupported(connection_id1, _))
.WillRepeatedly(Return(false));
EXPECT_CALL(session_observer_mock, IsHeartBeatSupported(connection_id2, _))