summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kutsan (GitHub) <akutsan@luxoft.com>2017-08-31 16:00:30 +0300
committerGitHub <noreply@github.com>2017-08-31 16:00:30 +0300
commit5e3c104b93c73f2dd1588fe00a11ce7604a40bc8 (patch)
tree2001d78ce1f450d6cbaae387d5ac6f4b30bd2e3b
parent726a44f5152e82542f63e95a419e4960fd33a4b4 (diff)
parenta1116f3d79c91cd581be8c2ba02fc3a3b98fc1b0 (diff)
downloadsdl_core-5e3c104b93c73f2dd1588fe00a11ce7604a40bc8.tar.gz
Merge pull request #257 from AKalinich-Luxoft/fix/fix_sdl_build_with_rc_off
Fix SDL build with RC = OFF
-rw-r--r--src/components/application_manager/test/commands/hmi/hmi_notifications/hmi_notifications_test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/application_manager/test/commands/hmi/hmi_notifications/hmi_notifications_test.cc b/src/components/application_manager/test/commands/hmi/hmi_notifications/hmi_notifications_test.cc
index abbf064bc2..9af72a7925 100644
--- a/src/components/application_manager/test/commands/hmi/hmi_notifications/hmi_notifications_test.cc
+++ b/src/components/application_manager/test/commands/hmi/hmi_notifications/hmi_notifications_test.cc
@@ -1109,9 +1109,12 @@ TEST_F(HMICommandsNotificationsTest,
(*notification)[am::strings::msg_params][am::strings::reason] =
static_cast<int32_t>(*it_mobile_reason);
+#ifdef SDL_REMOTE_CONTROL
functional_modules::PluginManager plugin_mng;
EXPECT_CALL(app_mngr_, GetPluginManager())
.WillRepeatedly(ReturnRef(plugin_mng));
+#endif // SDL_REMOTE_CONTROL
+
EXPECT_CALL(app_mngr_, application(kAppId_)).WillRepeatedly(Return(app_));
EXPECT_CALL(*message_helper_mock_,
GetOnAppInterfaceUnregisteredNotificationToMobile(
@@ -1136,9 +1139,12 @@ TEST_F(HMICommandsNotificationsTest,
utils::SharedPtr<Command> command =
CreateCommand<OnExitApplicationNotification>(message);
+#ifdef SDL_REMOTE_CONTROL
functional_modules::PluginManager plugin_mng;
EXPECT_CALL(app_mngr_, GetPluginManager())
.WillRepeatedly(ReturnRef(plugin_mng));
+#endif // SDL_REMOTE_CONTROL
+
EXPECT_CALL(app_mngr_, application(_)).Times(0);
EXPECT_CALL(app_mngr_, ManageMobileCommand(_, _)).Times(0);
EXPECT_CALL(app_mngr_, UnregisterApplication(_, _, _, _)).Times(0);
@@ -1193,9 +1199,12 @@ TEST_F(HMICommandsNotificationsTest,
utils::SharedPtr<Command> command =
CreateCommand<OnExitApplicationNotification>(message);
+#ifdef SDL_REMOTE_CONTROL
functional_modules::PluginManager plugin_mng;
EXPECT_CALL(app_mngr_, GetPluginManager())
.WillRepeatedly(ReturnRef(plugin_mng));
+#endif // SDL_REMOTE_CONTROL
+
EXPECT_CALL(app_mngr_, application(kAppId_)).WillRepeatedly(Return(app_));
EXPECT_CALL(app_mngr_, ManageMobileCommand(_, _)).Times(0);
EXPECT_CALL(app_mngr_, UnregisterApplication(_, _, _, _)).Times(0);