summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/commands/mobile/on_command_notification_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/test/commands/mobile/on_command_notification_test.cc')
-rw-r--r--src/components/application_manager/test/commands/mobile/on_command_notification_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/application_manager/test/commands/mobile/on_command_notification_test.cc b/src/components/application_manager/test/commands/mobile/on_command_notification_test.cc
index def324bfb6..7a69dd3bb6 100644
--- a/src/components/application_manager/test/commands/mobile/on_command_notification_test.cc
+++ b/src/components/application_manager/test/commands/mobile/on_command_notification_test.cc
@@ -70,8 +70,8 @@ TEST_F(OnCommandNotificationTest, Run_AppNotRegistered_UNSUCCESS) {
EXPECT_CALL(app_mngr_, application(_))
.WillOnce(Return(ApplicationSharedPtr()));
-
- EXPECT_CALL(app_mngr_, ManageMobileCommand(_, _)).Times(0);
+ EXPECT_CALL(app_mngr_, GetRPCService()).Times(0);
+ EXPECT_CALL(rpc_service_, ManageMobileCommand(_, _)).Times(0);
command->Run();
}
@@ -88,8 +88,8 @@ TEST_F(OnCommandNotificationTest, Run_NoAppsForTheCommand_UNSUCCESS) {
EXPECT_CALL(*mock_app, FindCommand(kCommandId))
.WillOnce(Return(static_cast<SmartObject*>(NULL)));
-
- EXPECT_CALL(app_mngr_, ManageMobileCommand(_, _)).Times(0);
+ EXPECT_CALL(app_mngr_, GetRPCService()).Times(0);
+ EXPECT_CALL(rpc_service_, ManageMobileCommand(_, _)).Times(0);
command->Run();
}
@@ -124,8 +124,8 @@ TEST_F(OnCommandNotificationTest, Run_SUCCESS) {
MessageSharedPtr dummy_msg(CreateMessage());
EXPECT_CALL(*mock_app, FindCommand(kCommandId))
.WillOnce(Return(dummy_msg.get()));
-
- EXPECT_CALL(app_mngr_, SendMessageToMobile(CheckNotificationMessage(), _));
+ ON_CALL(app_mngr_, GetRPCService()).WillByDefault(ReturnRef(rpc_service_));
+ EXPECT_CALL(rpc_service_, SendMessageToMobile(CheckNotificationMessage(), _));
command->Run();
}