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

Side by Side Diff: chrome/browser/policy/mock_cloud_policy_client.cc

Issue 10092010: Add CloudPolicyService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/policy/mock_cloud_policy_client.h"
6 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
7
8 namespace em = enterprise_management;
9
10 namespace policy {
11
12 MockCloudPolicyClient::MockCloudPolicyClient()
13 : CloudPolicyClient("", "", USER_AFFILIATION_NONE, POLICY_SCOPE_USER, NULL,
14 NULL) {}
15
16 MockCloudPolicyClient::~MockCloudPolicyClient() {}
17
18 void MockCloudPolicyClient::SetDMToken(const std::string& token) {
19 dm_token_ = token;
20 }
21
22 void MockCloudPolicyClient::SetPolicy(const em::PolicyFetchResponse& policy) {
23 policy_.reset(new enterprise_management::PolicyFetchResponse(policy));
24 }
25
26 void MockCloudPolicyClient::SetStatus(DeviceManagementStatus status) {
27 status_ = status;
28 }
29
30 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_cloud_policy_client.h ('k') | chrome/browser/policy/mock_cloud_policy_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698