summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2017-09-04 11:48:28 +0300
committerAKalinich-Luxoft <AKalinich@luxoft.com>2017-09-04 11:48:28 +0300
commit77ad4b5bfd53325e27bdc700fbfb659c7340e437 (patch)
tree4b4a337162943abd1a2d98c9b3270fd2c63e9838
parent8740cda8f9bc05943553b7b7fb5661e4a624d534 (diff)
downloadsdl_core-77ad4b5bfd53325e27bdc700fbfb659c7340e437.tar.gz
Fix unit tests for RC commands
-rw-r--r--src/components/remote_control/test/commands/button_press_request_test.cc2
-rw-r--r--src/components/remote_control/test/commands/get_interior_vehicle_data_request_test.cc2
-rw-r--r--src/components/remote_control/test/commands/on_remote_control_settings_test.cc2
-rw-r--r--src/components/remote_control/test/commands/set_interior_vehicle_data_request_test.cc2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/components/remote_control/test/commands/button_press_request_test.cc b/src/components/remote_control/test/commands/button_press_request_test.cc
index 063aa59b6f..06a48fc077 100644
--- a/src/components/remote_control/test/commands/button_press_request_test.cc
+++ b/src/components/remote_control/test/commands/button_press_request_test.cc
@@ -148,6 +148,8 @@ class ButtonPressRequestTest : public ::testing::Test {
.WillByDefault(Return(&rc_capabilities_));
ON_CALL(*mock_service_, IsInterfaceAvailable(_))
.WillByDefault(Return(true));
+ ON_CALL(*mock_service_, IsRemoteControlApplication(_))
+ .WillByDefault(Return(true));
}
remote_control::request_controller::MobileRequestPtr CreateCommand(
diff --git a/src/components/remote_control/test/commands/get_interior_vehicle_data_request_test.cc b/src/components/remote_control/test/commands/get_interior_vehicle_data_request_test.cc
index 5e7366f48c..4ad833aa60 100644
--- a/src/components/remote_control/test/commands/get_interior_vehicle_data_request_test.cc
+++ b/src/components/remote_control/test/commands/get_interior_vehicle_data_request_test.cc
@@ -115,6 +115,8 @@ class GetInteriorVehicleDataRequestTest : public ::testing::Test {
.WillByDefault(Return(mock_app_));
ON_CALL(*mock_service_, IsInterfaceAvailable(_))
.WillByDefault(Return(true));
+ ON_CALL(*mock_service_, IsRemoteControlApplication(_))
+ .WillByDefault(Return(true));
EXPECT_CALL(mock_module_, event_dispatcher())
.WillRepeatedly(ReturnRef(event_dispatcher_));
ServicePtr exp_service(mock_service_);
diff --git a/src/components/remote_control/test/commands/on_remote_control_settings_test.cc b/src/components/remote_control/test/commands/on_remote_control_settings_test.cc
index 977ae996fa..5c13ea63d5 100644
--- a/src/components/remote_control/test/commands/on_remote_control_settings_test.cc
+++ b/src/components/remote_control/test/commands/on_remote_control_settings_test.cc
@@ -106,6 +106,8 @@ class OnRemoteControlSettingsNotificationTest : public ::testing::Test {
.WillByDefault(ReturnRef(mock_allocation_manager_));
ON_CALL(*mock_service_, IsInterfaceAvailable(_))
.WillByDefault(Return(true));
+ ON_CALL(*mock_service_, IsRemoteControlApplication(_))
+ .WillByDefault(Return(true));
apps_.push_back(mock_app_);
}
diff --git a/src/components/remote_control/test/commands/set_interior_vehicle_data_request_test.cc b/src/components/remote_control/test/commands/set_interior_vehicle_data_request_test.cc
index ac8548dd0d..a219bc086d 100644
--- a/src/components/remote_control/test/commands/set_interior_vehicle_data_request_test.cc
+++ b/src/components/remote_control/test/commands/set_interior_vehicle_data_request_test.cc
@@ -124,6 +124,8 @@ class SetInteriorVehicleDataRequestTest : public ::testing::Test {
ON_CALL(*mock_service_, GetApplication(_)).WillByDefault(Return(mock_app_));
ON_CALL(*mock_service_, IsInterfaceAvailable(_))
.WillByDefault(Return(true));
+ ON_CALL(*mock_service_, IsRemoteControlApplication(_))
+ .WillByDefault(Return(true));
ON_CALL(mock_module_, event_dispatcher())
.WillByDefault(ReturnRef(event_dispatcher_));
ServicePtr exp_service(mock_service_);