diff options
author | Herasym Oleh <oolleehh@gmail.com> | 2017-04-27 14:25:04 +0300 |
---|---|---|
committer | okozlovlux <okozlov@luxoft.com> | 2017-05-17 19:27:11 +0300 |
commit | d30137800ac1bc1d69370826f3d46aa95c68cbcc (patch) | |
tree | 74467c4d885e99a8d858392bf6a8a2da53c89dec /src/components/policy/policy_external/test/policy_manager_impl_test.cc | |
parent | 3f7e9df16be602c3a071a51f2d958fb2008a27b3 (diff) | |
download | sdl_core-d30137800ac1bc1d69370826f3d46aa95c68cbcc.tar.gz |
Fix absent status update
Fix coding style
Conflicts:
src/components/policy/policy_external/src/policy_manager_impl.cc
src/components/policy/policy_external/test/policy_manager_impl_test.cc
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 47f289a9e9..f2fc875021 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 @@ -129,7 +129,10 @@ TEST_F(PolicyManagerImplTest, ResetPT) { TEST_F(PolicyManagerImplTest, LoadPT_SetPT_PTIsLoaded) { // Arrange + EXPECT_CALL(*cache_manager_, DaysBeforeExchange(_)) + .WillOnce(Return(kNonZero)); policy_manager_->ForcePTExchange(); + policy_manager_->SetSendOnUpdateFlags(true, false); policy_manager_->OnUpdateStarted(); Json::Value table = createPTforLoad(); @@ -200,6 +203,7 @@ TEST_F(PolicyManagerImplTest2, ResetRetrySequence) { CreateLocalPT(preloaded_pt_filename_); policy_manager_->ResetRetrySequence(); EXPECT_EQ("UPDATE_NEEDED", policy_manager_->GetPolicyTableStatus()); + policy_manager_->SetSendOnUpdateFlags(false, false); policy_manager_->OnUpdateStarted(); EXPECT_EQ("UPDATING", policy_manager_->GetPolicyTableStatus()); } |