diff options
author | Andrey Oleynik <aoleynik@luxoft.com> | 2016-12-18 14:54:47 +0200 |
---|---|---|
committer | Andrey Oleynik <aoleynik@luxoft.com> | 2016-12-20 22:04:49 +0200 |
commit | c8927d9a56efe633f519230f84837899df6e8d2a (patch) | |
tree | bec9624512f8e20988a191c1c53aa02178c3a011 /src/components/policy/policy_external/test/policy_manager_impl_test.cc | |
parent | fdc43e8eb6bcdf842bac744ed8f6eccb257d2589 (diff) | |
download | sdl_core-c8927d9a56efe633f519230f84837899df6e8d2a.tar.gz |
Reworks policy statuses implementation
Implementation is changed due to necessity to have more maintainable
code for policy update status handling.
It is supposed to replace most interfaces present currently in
UpdateStatusManager with ProcessEvent() interface, however this will
require to change a lot of tests, so this will be a separate task.
Relates-to: APPLINK-30705
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.cc | 4 |
1 files changed, 4 insertions, 0 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 4eba4d3e1c..097843a98e 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 @@ -127,6 +127,8 @@ TEST_F(PolicyManagerImplTest, ResetPT) { TEST_F(PolicyManagerImplTest, LoadPT_SetPT_PTIsLoaded) { // Arrange + manager_->ForcePTExchange(); + manager_->OnUpdateStarted(); Json::Value table = createPTforLoad(); policy_table::Table update(&table); @@ -280,6 +282,7 @@ TEST_F(PolicyManagerImplTest2, GetPolicyTableStatus_ExpectUpToDate) { TEST_F(PolicyManagerImplTest, SetUpdateStarted_GetPolicyTableStatus_Expect_Updating) { // Arrange + manager_->ForcePTExchange(); EXPECT_CALL(*cache_manager_, SaveUpdateRequired(true)); manager_->OnUpdateStarted(); // Check @@ -311,6 +314,7 @@ TEST_F(PolicyManagerImplTest2, OnExceededTimeout_GetPolicyTableStatus_ExpectUpdateNeeded) { // Arrange CreateLocalPT(preloadet_pt_filename_); + manager_->ForcePTExchange(); manager_->OnExceededTimeout(); // Check EXPECT_EQ("UPDATE_NEEDED", manager_->GetPolicyTableStatus()); |