summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/test/policy_manager_impl_test.cc
diff options
context:
space:
mode:
authoratimchenko <atymchenko@luxoft.com>2017-04-21 16:52:10 +0300
committerokozlovlux <okozlov@luxoft.com>2017-05-17 19:27:11 +0300
commit9cb25e928fc2591554e997e1ed8d5f4eb553dbc7 (patch)
treeb346de1172968532f2d20bc5f2721b12b113beb4 /src/components/policy/policy_external/test/policy_manager_impl_test.cc
parent0e55be0a471b55429bed079f684a8aa2a391c5c8 (diff)
downloadsdl_core-9cb25e928fc2591554e997e1ed8d5f4eb553dbc7.tar.gz
Fix SDL ignores externalConsentStatus
Fixed SDL ignores externalConsentStatus when is sent together with consentedFunction in OnAppPermissionConsent notification. Fixed policy handler unit tests Fixed policy_manager_implementation unit tests
Diffstat (limited to 'src/components/policy/policy_external/test/policy_manager_impl_test.cc')
-rw-r--r--src/components/policy/policy_external/test/policy_manager_impl_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/policy/policy_external/test/policy_manager_impl_test.cc b/src/components/policy/policy_external/test/policy_manager_impl_test.cc
index 3890bcb9e7..47f289a9e9 100644
--- a/src/components/policy/policy_external/test/policy_manager_impl_test.cc
+++ b/src/components/policy/policy_external/test/policy_manager_impl_test.cc
@@ -807,7 +807,7 @@ TEST_F(PolicyManagerImplTest_ExternalConsent,
EXPECT_TRUE(policy_manager_->SetExternalConsentStatus(status));
- EXPECT_CALL(listener_, OnPermissionsUpdated(app_id_1_, _)).Times(0);
+ EXPECT_CALL(listener_, OnPermissionsUpdated(app_id_1_, _));
EXPECT_CALL(listener_, OnCurrentDeviceIdUpdateRequired(app_id_1_))
.WillRepeatedly(Return(device_id_1_));
@@ -932,7 +932,7 @@ TEST_F(PolicyManagerImplTest_ExternalConsent,
EXPECT_TRUE(policy_manager_->SetExternalConsentStatus(status));
- EXPECT_CALL(listener_, OnPermissionsUpdated(app_id_1_, _)).Times(0);
+ EXPECT_CALL(listener_, OnPermissionsUpdated(app_id_1_, _));
EXPECT_CALL(listener_, OnCurrentDeviceIdUpdateRequired(app_id_1_))
.WillRepeatedly(Return(device_id_1_));