OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/policy/mock_cloud_policy_client.h" | 5 #include "chrome/browser/policy/mock_cloud_policy_client.h" |
6 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 6 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
7 | 7 |
8 namespace em = enterprise_management; | 8 namespace em = enterprise_management; |
9 | 9 |
10 namespace policy { | 10 namespace policy { |
(...skipping 11 matching lines...) Expand all Loading... |
22 const em::PolicyFetchResponse& policy) { | 22 const em::PolicyFetchResponse& policy) { |
23 em::PolicyFetchResponse*& response = responses_[policy_ns_key]; | 23 em::PolicyFetchResponse*& response = responses_[policy_ns_key]; |
24 delete response; | 24 delete response; |
25 response = new enterprise_management::PolicyFetchResponse(policy); | 25 response = new enterprise_management::PolicyFetchResponse(policy); |
26 } | 26 } |
27 | 27 |
28 void MockCloudPolicyClient::SetStatus(DeviceManagementStatus status) { | 28 void MockCloudPolicyClient::SetStatus(DeviceManagementStatus status) { |
29 status_ = status; | 29 status_ = status; |
30 } | 30 } |
31 | 31 |
| 32 MockCloudPolicyClientObserver::MockCloudPolicyClientObserver() {} |
| 33 |
| 34 MockCloudPolicyClientObserver::~MockCloudPolicyClientObserver() {} |
| 35 |
32 } // namespace policy | 36 } // namespace policy |
OLD | NEW |