Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1833)

Unified Diff: chrome/browser/policy/cloud_policy_provider_unittest.cc

Issue 9599009: Fix infinite refresh of device policy when the TPM gets out of sync with the stateful partition. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added unit test Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud_policy_provider_unittest.cc
diff --git a/chrome/browser/policy/cloud_policy_provider_unittest.cc b/chrome/browser/policy/cloud_policy_provider_unittest.cc
index c62d91b5408e71cd2ab9e40420c4f504a1c46db8..cd0f1b95492788c1a362e2aa4a3246e360dd9cc1 100644
--- a/chrome/browser/policy/cloud_policy_provider_unittest.cc
+++ b/chrome/browser/policy/cloud_policy_provider_unittest.cc
@@ -37,7 +37,9 @@ class MockCloudPolicyCache : public CloudPolicyCacheBase {
// CloudPolicyCacheBase implementation.
void Load() OVERRIDE {}
- void SetPolicy(const em::PolicyFetchResponse& policy) OVERRIDE {}
+ bool SetPolicy(const em::PolicyFetchResponse& policy) OVERRIDE {
+ return true;
+ }
bool DecodePolicyData(const em::PolicyData& policy_data,
PolicyMap* policies) OVERRIDE {
return true;
« no previous file with comments | « chrome/browser/policy/cloud_policy_controller_unittest.cc ('k') | chrome/browser/policy/device_policy_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698