summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin <iCollin@users.noreply.github.com>2021-02-11 14:30:53 -0500
committerGitHub <noreply@github.com>2021-02-11 14:30:53 -0500
commitb7ce9c0d549ece6a5dc9164508863fdb428f74e9 (patch)
treea60f745b54749f6d2b7ef7919ddf11e5e1db0695
parent8decb93a8bd2ff64752358740ea2601c763e4142 (diff)
downloadsdl_core-b7ce9c0d549ece6a5dc9164508863fdb428f74e9.tar.gz
apply #3624 after merge of 0293 (#3632)
-rw-r--r--src/components/protocol_handler/test/protocol_handler_tm_test.cc6
1 files changed, 3 insertions, 3 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 7cf1878c5f..035909ecbf 100644
--- a/src/components/protocol_handler/test/protocol_handler_tm_test.cc
+++ b/src/components/protocol_handler/test/protocol_handler_tm_test.cc
@@ -5415,7 +5415,7 @@ TEST_F(ProtocolHandlerImplTest,
TEST_F(ProtocolHandlerImplTest,
StartSessionAck_ProtocolVehicleData_VehicleDataParamsForV5) {
- TestAsyncWaiter waiter;
+ auto waiter = TestAsyncWaiter::createInstance();
const size_t maximum_rpc_payload_size = 1500;
EXPECT_CALL(protocol_handler_settings_mock, maximum_rpc_payload_size())
@@ -5506,7 +5506,7 @@ TEST_F(ProtocolHandlerImplTest,
PROTECTION_OFF,
connection_id,
Eq(expected_param))))
- .WillOnce(DoAll(NotifyTestAsyncWaiter(&waiter), Return(E_SUCCESS)));
+ .WillOnce(DoAll(NotifyTestAsyncWaiter(waiter), Return(E_SUCCESS)));
connection_handler::SessionTransports dummy_st = {0, 0};
EXPECT_CALL(connection_handler_mock,
@@ -5544,7 +5544,7 @@ TEST_F(ProtocolHandlerImplTest,
false /* protection */,
full_version);
- EXPECT_TRUE(waiter.WaitFor(1, kAsyncExpectationsTimeout));
+ EXPECT_TRUE(waiter->WaitFor(1, kAsyncExpectationsTimeout));
}
} // namespace protocol_handler_test