summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Byzhynar (GitHub) <AByzhynar@luxoft.com>2019-08-20 16:18:25 +0300
committerAndriy Byzhynar (GitHub) <AByzhynar@luxoft.com>2019-08-21 13:18:02 +0300
commitc2192fa76603a4fa91be589d84b75b1742b5619f (patch)
tree2a4ae3008c847863120663d8e213d4c841f62b14
parentd38383d186ecab67a35a7acd90aeaf8a94832b93 (diff)
downloadsdl_core-c2192fa76603a4fa91be589d84b75b1742b5619f.tar.gz
Fix policy manager unit tests after rebase
-rw-r--r--src/components/policy/policy_regular/test/policy_manager_impl_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/policy/policy_regular/test/policy_manager_impl_test.cc b/src/components/policy/policy_regular/test/policy_manager_impl_test.cc
index ee531b17bd..7ea35d7eec 100644
--- a/src/components/policy/policy_regular/test/policy_manager_impl_test.cc
+++ b/src/components/policy/policy_regular/test/policy_manager_impl_test.cc
@@ -655,6 +655,8 @@ TEST_F(
manager->SetUserConsentForDevice(dev_id1, true);
// Add app from consented device. App will be assigned with default policies
manager->AddApplication(app_id1, app_id1, HmiTypes(policy_table::AHT_DEFAULT));
+ EXPECT_CALL(listener, GetDevicesIds(app_id1))
+ .WillRepeatedly(Return(transport_manager::DeviceList()));
// Act
const char* const rpc_name = "CreateWindow";
const char* const hmi_level = "NONE";
@@ -708,6 +710,8 @@ TEST_F(
manager->SetUserConsentForDevice(dev_id1, true);
// Add app from consented device. App will be assigned with default policies
manager->AddApplication(dev_id1, app_id1, HmiTypes(policy_table::AHT_DEFAULT));
+ EXPECT_CALL(listener, GetDevicesIds(app_id1))
+ .WillRepeatedly(Return(transport_manager::DeviceList()));
// Act
const char* const rpc_name = "DeleteWindow";
const char* const hmi_level = "NONE";