diff options
Diffstat (limited to 'src/components/application_manager/test/commands/hmi/simple_response_to_hmi_test.cc')
-rw-r--r-- | src/components/application_manager/test/commands/hmi/simple_response_to_hmi_test.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/application_manager/test/commands/hmi/simple_response_to_hmi_test.cc b/src/components/application_manager/test/commands/hmi/simple_response_to_hmi_test.cc index 3948d2bfe3..1ca21fe725 100644 --- a/src/components/application_manager/test/commands/hmi/simple_response_to_hmi_test.cc +++ b/src/components/application_manager/test/commands/hmi/simple_response_to_hmi_test.cc @@ -74,8 +74,9 @@ TYPED_TEST(ResponseToHMICommandsTest, Run_SendMessageToHMI_SUCCESS) { typedef typename TestFixture::CommandType CommandType; SharedPtr<CommandType> command = this->template CreateCommand<CommandType>(); - - EXPECT_CALL(this->app_mngr_, SendMessageToHMI(NotNull())); + EXPECT_CALL(this->app_mngr_, GetRPCService()) + .WillOnce(ReturnRef(this->rpc_service_)); + EXPECT_CALL(this->rpc_service_, SendMessageToHMI(NotNull())); command->Run(); } @@ -94,8 +95,8 @@ TEST_F(ResponseToHMITest, BasicMethodsOverloads_SUCCESS) { TEST_F(ResponseToHMITest, Run_SUCCESS) { SharedPtr<commands::ResponseToHMI> command( CreateCommand<commands::ResponseToHMI>()); - - EXPECT_CALL(app_mngr_, SendMessageToHMI(NotNull())); + ON_CALL(app_mngr_, GetRPCService()).WillByDefault(ReturnRef(rpc_service_)); + EXPECT_CALL(rpc_service_, SendMessageToHMI(NotNull())); command->Run(); } |