summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-06-14 10:05:14 -0400
committerGitHub <noreply@github.com>2018-06-14 10:05:14 -0400
commit0dec6ef21fdfd752e33b0364c9e50d27c736371e (patch)
tree3e83f4f2fdabe3abc147d27b5c56df1d6d208c8f
parentab7f1a8c591b90179a083fb43c91959dd64f3417 (diff)
parent7468b3369ccfca971d3427bb7448062571312b6f (diff)
downloadsdl_core-0dec6ef21fdfd752e33b0364c9e50d27c736371e.tar.gz
Merge pull request #2252 from LitvinenkoIra/fix/protocol_handler_test
Fix protocol handler unit test
-rw-r--r--src/components/protocol_handler/test/protocol_handler_tm_test.cc6
1 files changed, 4 insertions, 2 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 77de1705da..8525b1c5b9 100644
--- a/src/components/protocol_handler/test/protocol_handler_tm_test.cc
+++ b/src/components/protocol_handler/test/protocol_handler_tm_test.cc
@@ -1989,7 +1989,8 @@ TEST_F(ProtocolHandlerImplTest, SendHeartBeat_Successful) {
transport_manager_mock,
SendMessageToDevice(ExpectedMessage(
FRAME_TYPE_CONTROL, FRAME_DATA_HEART_BEAT, PROTECTION_OFF, kControl)))
- .WillOnce(Return(E_SUCCESS));
+ .WillOnce(DoAll(NotifyTestAsyncWaiter(waiter), Return(E_SUCCESS)));
+ times++;
// Act
protocol_handler_impl->SendHeartBeat(connection_id, session_id);
@@ -2086,7 +2087,8 @@ TEST_F(ProtocolHandlerImplTest,
transport_manager_mock,
SendMessageToDevice(ExpectedMessage(
FRAME_TYPE_SINGLE, FRAME_DATA_SINGLE, PROTECTION_OFF, kControl)))
- .WillOnce(Return(E_SUCCESS));
+ .WillOnce(DoAll(NotifyTestAsyncWaiter(waiter), Return(E_SUCCESS)));
+ times++;
// Act
protocol_handler_impl->SendMessageToMobileApp(message, is_final);