Chromium Code Reviews| 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_; |