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

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

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: Fixed mac tests Created 7 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
Index: chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc
diff --git a/chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc b/chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc
index 872e01f9494e08d220e5a507734edad134bbcef5..f6e803ae7e59feff05d44548ec33e3b47f5017f2 100644
--- a/chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc
+++ b/chrome/browser/policy/cloud/cloud_policy_manager_unittest.cc
@@ -35,6 +35,7 @@ class TestHarness : public PolicyProviderTestHarness {
virtual void SetUp() OVERRIDE;
virtual ConfigurationPolicyProvider* CreateProvider(
+ SchemaRegistry* registry,
scoped_refptr<base::SequencedTaskRunner> task_runner,
const PolicyDefinitionList* policy_definition_list) OVERRIDE;
@@ -70,6 +71,7 @@ TestHarness::~TestHarness() {}
void TestHarness::SetUp() {}
ConfigurationPolicyProvider* TestHarness::CreateProvider(
+ SchemaRegistry* registry,
scoped_refptr<base::SequencedTaskRunner> task_runner,
const PolicyDefinitionList* policy_definition_list) {
// Create and initialize the store.
@@ -176,7 +178,7 @@ class CloudPolicyManagerTest : public testing::Test {
EXPECT_CALL(store_, Load());
manager_.reset(new TestCloudPolicyManager(&store_,
loop_.message_loop_proxy()));
- manager_->Init();
+ manager_->Init(&schema_registry_);
Mock::VerifyAndClearExpectations(&store_);
manager_->AddObserver(&observer_);
}
@@ -196,6 +198,7 @@ class CloudPolicyManagerTest : public testing::Test {
PolicyBundle expected_bundle_;
// Policy infrastructure.
+ SchemaRegistry schema_registry_;
bartfab (slow) 2013/11/05 15:53:04 #include "chrome/browser/policy/schema_registry.h"
Joao da Silva 2013/11/07 13:15:00 Done.
MockConfigurationPolicyObserver observer_;
MockCloudPolicyStore store_;
scoped_ptr<TestCloudPolicyManager> manager_;

Powered by Google App Engine
This is Rietveld 408576698