diff options
author | Yaroslav Mamykin (GitHub) <ymamykin@luxoft.com> | 2019-09-05 14:04:19 +0300 |
---|---|---|
committer | Yarik <ymamykin@gmail.com> | 2019-11-15 15:16:38 +0200 |
commit | aae039cebca500b8c96981b2d8c650722b5599bd (patch) | |
tree | bcc8c550f7ed1499a1eb865028c7671b0d64b698 | |
parent | aae04d0f3b53ba950688a9db0f768c38926b88cc (diff) | |
download | sdl_core-aae039cebca500b8c96981b2d8c650722b5599bd.tar.gz |
Fix existing unit tests
-rw-r--r-- | src/components/application_manager/rpc_plugins/rc_rpc_plugin/test/commands/rc_get_interior_vehicle_data_consent_test.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/test/commands/rc_get_interior_vehicle_data_consent_test.cc b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/test/commands/rc_get_interior_vehicle_data_consent_test.cc index d44265a1d5..55be43f37b 100644 --- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/test/commands/rc_get_interior_vehicle_data_consent_test.cc +++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/test/commands/rc_get_interior_vehicle_data_consent_test.cc @@ -265,15 +265,17 @@ TEST_F(RCGetInteriorVehicleDataConsentTest, TEST_F(RCGetInteriorVehicleDataConsentTest, Run_MobileSendButtonPressMessage_HMISendINUSEModeToMobile) { - // Arrange - auto mobile_message = CreateBasicMessage(); - // Expectations EXPECT_CALL(mock_allocation_manager_, AcquireResource(_, _, _)) .WillOnce(Return(rc_rpc_plugin::AcquireResult::IN_USE)); + auto msg_ver = utils::SemanticVersion(); + ON_CALL(*mock_app_, msg_version()).WillByDefault(ReturnRef(msg_ver)); + EXPECT_CALL(*optional_mock_rpc_plugin, GetCommandFactory()) .WillOnce(ReturnRef(mock_command_factory)); + + auto mobile_message = CreateBasicMessage(); auto rc_consent_response = CreateRCCommand<commands::RCGetInteriorVehicleDataConsentResponse>( mobile_message); |