summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/commands/mobile/simple_response_commands_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/test/commands/mobile/simple_response_commands_test.cc')
-rw-r--r--src/components/application_manager/test/commands/mobile/simple_response_commands_test.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/application_manager/test/commands/mobile/simple_response_commands_test.cc b/src/components/application_manager/test/commands/mobile/simple_response_commands_test.cc
index d80a7e0551..06dd81e879 100644
--- a/src/components/application_manager/test/commands/mobile/simple_response_commands_test.cc
+++ b/src/components/application_manager/test/commands/mobile/simple_response_commands_test.cc
@@ -137,7 +137,9 @@ TYPED_TEST_CASE(MobileResponseCommandsTest, ResponseCommandsList);
TYPED_TEST(MobileResponseCommandsTest, Run_SendResponseToMobile_SUCCESS) {
::utils::SharedPtr<typename TestFixture::CommandType> command =
this->template CreateCommand<typename TestFixture::CommandType>();
- EXPECT_CALL(this->app_mngr_, SendMessageToMobile(NotNull(), _));
+ EXPECT_CALL(this->app_mngr_, GetRPCService())
+ .WillOnce(ReturnRef(this->rpc_service_));
+ EXPECT_CALL(this->rpc_service_, SendMessageToMobile(NotNull(), _));
command->Run();
}
@@ -167,8 +169,10 @@ TEST_F(GenericResponseFromHMICommandsTest, Run_SUCCESS) {
SharedPtr<commands::GenericResponse> command(
CreateCommand<commands::GenericResponse>(command_msg));
+ EXPECT_CALL(this->app_mngr_, GetRPCService())
+ .WillOnce(ReturnRef(this->rpc_service_));
EXPECT_CALL(
- app_mngr_,
+ this->rpc_service_,
SendMessageToMobile(
CheckMessageParams(false, mobile_apis::Result::INVALID_DATA), false));