summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Mamykin (GitHub) <ymamykin@luxoft.com>2019-09-05 14:04:19 +0300
committerYaroslav Mamykin (GitHub) <ymamykin@luxoft.com>2019-09-24 12:17:58 +0300
commit0349981c0effc566e1803e516b31c011c394a690 (patch)
tree28536bd70c4a0c64c91599068dbe97f962e9ee64
parentad3c73a79e33fd424d6699f6b3f6c365c4d0ef1f (diff)
downloadsdl_core-0349981c0effc566e1803e516b31c011c394a690.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.cc8
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);