Index: chrome/browser/policy/mock_configuration_policy_provider.cc |
diff --git a/chrome/browser/policy/mock_configuration_policy_provider.cc b/chrome/browser/policy/mock_configuration_policy_provider.cc |
deleted file mode 100644 |
index 353207006b5e7e7a34e2485cdf4033333794c370..0000000000000000000000000000000000000000 |
--- a/chrome/browser/policy/mock_configuration_policy_provider.cc |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "chrome/browser/policy/mock_configuration_policy_provider.h" |
- |
-#include <string> |
- |
-#include "base/memory/scoped_ptr.h" |
-#include "base/message_loop/message_loop.h" |
-#include "base/run_loop.h" |
-#include "components/policy/core/common/policy_bundle.h" |
- |
-using testing::Invoke; |
- |
-namespace policy { |
- |
-MockConfigurationPolicyProvider::MockConfigurationPolicyProvider() {} |
- |
-MockConfigurationPolicyProvider::~MockConfigurationPolicyProvider() {} |
- |
-void MockConfigurationPolicyProvider::UpdateChromePolicy( |
- const PolicyMap& policy) { |
- scoped_ptr<PolicyBundle> bundle(new PolicyBundle()); |
- bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) |
- .CopyFrom(policy); |
- UpdatePolicy(bundle.Pass()); |
- if (base::MessageLoop::current()) |
- base::RunLoop().RunUntilIdle(); |
-} |
- |
-void MockConfigurationPolicyProvider::SetAutoRefresh() { |
- EXPECT_CALL(*this, RefreshPolicies()).WillRepeatedly( |
- Invoke(this, &MockConfigurationPolicyProvider::RefreshWithSamePolicies)); |
-} |
- |
-void MockConfigurationPolicyProvider::RefreshWithSamePolicies() { |
- scoped_ptr<PolicyBundle> bundle(new PolicyBundle); |
- bundle->CopyFrom(policies()); |
- UpdatePolicy(bundle.Pass()); |
-} |
- |
-MockConfigurationPolicyObserver::MockConfigurationPolicyObserver() {} |
- |
-MockConfigurationPolicyObserver::~MockConfigurationPolicyObserver() {} |
- |
-} // namespace policy |