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

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

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 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/mock_cloud_policy_client.cc
diff --git a/chrome/browser/policy/mock_cloud_policy_client.cc b/chrome/browser/policy/mock_cloud_policy_client.cc
deleted file mode 100644
index c5b71d4b1e4c54094a1beededa100d5b42aacb37..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/mock_cloud_policy_client.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2012 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_cloud_policy_client.h"
-#include "chrome/browser/policy/proto/device_management_backend.pb.h"
-
-namespace em = enterprise_management;
-
-namespace policy {
-
-MockCloudPolicyClient::MockCloudPolicyClient()
- : CloudPolicyClient("", "", USER_AFFILIATION_NONE, NULL, NULL) {}
-
-MockCloudPolicyClient::~MockCloudPolicyClient() {}
-
-void MockCloudPolicyClient::SetDMToken(const std::string& token) {
- dm_token_ = token;
-}
-
-void MockCloudPolicyClient::SetPolicy(const PolicyNamespaceKey& policy_ns_key,
- const em::PolicyFetchResponse& policy) {
- em::PolicyFetchResponse*& response = responses_[policy_ns_key];
- delete response;
- response = new enterprise_management::PolicyFetchResponse(policy);
-}
-
-void MockCloudPolicyClient::SetStatus(DeviceManagementStatus status) {
- status_ = status;
-}
-
-} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698