diff options
author | JackLivio <jack@livio.io> | 2018-06-14 10:05:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 10:05:14 -0400 |
commit | 0dec6ef21fdfd752e33b0364c9e50d27c736371e (patch) | |
tree | 3e83f4f2fdabe3abc147d27b5c56df1d6d208c8f | |
parent | ab7f1a8c591b90179a083fb43c91959dd64f3417 (diff) | |
parent | 7468b3369ccfca971d3427bb7448062571312b6f (diff) | |
download | sdl_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.cc | 6 |
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); |