diff options
Diffstat (limited to 'src/components/application_manager/test/commands/mobile/register_app_interface_request_test.cc')
-rw-r--r-- | src/components/application_manager/test/commands/mobile/register_app_interface_request_test.cc | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/components/application_manager/test/commands/mobile/register_app_interface_request_test.cc b/src/components/application_manager/test/commands/mobile/register_app_interface_request_test.cc index 3225b4ef4c..6f7ab7d149 100644 --- a/src/components/application_manager/test/commands/mobile/register_app_interface_request_test.cc +++ b/src/components/application_manager/test/commands/mobile/register_app_interface_request_test.cc @@ -288,15 +288,17 @@ TEST_F(RegisterAppInterfaceRequestTest, Run_MinimalData_SUCCESS) { .WillByDefault(Return(notify_upd_manager)); EXPECT_CALL(app_mngr_, RegisterApplication(msg_)).WillOnce(Return(mock_app)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(app_mngr_, GetRPCService()) + .WillRepeatedly(ReturnRef(rpc_service_)); + EXPECT_CALL(rpc_service_, ManageHMICommand(HMIResultCodeIs( hmi_apis::FunctionID::BasicCommunication_OnAppRegistered))) .WillOnce(Return(true)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(rpc_service_, ManageHMICommand(HMIResultCodeIs( hmi_apis::FunctionID::Buttons_OnButtonSubscription))) .WillOnce(Return(true)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(rpc_service_, ManageMobileCommand(_, am::commands::Command::ORIGIN_SDL)) .Times(2); command_->Run(); @@ -388,27 +390,28 @@ TEST_F(RegisterAppInterfaceRequestTest, EXPECT_CALL(mock_hmi_interfaces_, GetInterfaceState(_)) .WillRepeatedly(Return(am::HmiInterfaces::STATE_AVAILABLE)); - EXPECT_CALL(app_mngr_, + ON_CALL(app_mngr_, GetRPCService()).WillByDefault(ReturnRef(rpc_service_)); + EXPECT_CALL(rpc_service_, ManageHMICommand(HMIResultCodeIs( hmi_apis::FunctionID::BasicCommunication_OnAppRegistered))) .WillOnce(Return(true)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(rpc_service_, ManageHMICommand(HMIResultCodeIs( hmi_apis::FunctionID::Buttons_OnButtonSubscription))) .WillOnce(Return(true)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(rpc_service_, ManageHMICommand( HMIResultCodeIs(hmi_apis::FunctionID::VR_ChangeRegistration))) .WillOnce(Return(true)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(rpc_service_, ManageHMICommand(HMIResultCodeIs( hmi_apis::FunctionID::TTS_ChangeRegistration))) .WillOnce(Return(true)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(rpc_service_, ManageHMICommand( HMIResultCodeIs(hmi_apis::FunctionID::UI_ChangeRegistration))) .WillOnce(Return(true)); - EXPECT_CALL(app_mngr_, + EXPECT_CALL(rpc_service_, ManageMobileCommand(_, am::commands::Command::ORIGIN_SDL)) .Times(2); |