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

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

Issue 11361120: Fix bad CloudPolicyManager test harness setup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_manager_unittest.cc
diff --git a/chrome/browser/policy/cloud_policy_manager_unittest.cc b/chrome/browser/policy/cloud_policy_manager_unittest.cc
index 6e399e7a9e3ce2bb886153cf0d082b6d052db944..c44234bd55739e1114a29efaea591039ec24671e 100644
--- a/chrome/browser/policy/cloud_policy_manager_unittest.cc
+++ b/chrome/browser/policy/cloud_policy_manager_unittest.cc
@@ -71,8 +71,10 @@ ConfigurationPolicyProvider* TestHarness::CreateProvider(
store_ = new MockCloudPolicyStore();
store_->NotifyStoreLoaded();
EXPECT_CALL(*store_, Load());
- return new CloudPolicyManager(scoped_ptr<CloudPolicyStore>(store_));
+ ConfigurationPolicyProvider* provider =
+ new CloudPolicyManager(scoped_ptr<CloudPolicyStore>(store_));
Mock::VerifyAndClearExpectations(store_);
+ return provider;
}
void TestHarness::InstallEmptyPolicy() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698