| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_device_management_service.h" | 5 #include "chrome/browser/policy/mock_device_management_service.h" |
| 6 | 6 |
| 7 namespace policy { | 7 namespace policy { |
| 8 | 8 |
| 9 ProxyDeviceManagementBackend::ProxyDeviceManagementBackend( | 9 ProxyDeviceManagementBackend::ProxyDeviceManagementBackend( |
| 10 DeviceManagementBackend* backend) | 10 DeviceManagementBackend* backend) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void ProxyDeviceManagementBackend::ProcessPolicyRequest( | 34 void ProxyDeviceManagementBackend::ProcessPolicyRequest( |
| 35 const std::string& device_management_token, | 35 const std::string& device_management_token, |
| 36 const std::string& device_id, | 36 const std::string& device_id, |
| 37 CloudPolicyDataStore::UserAffiliation affiliation, | 37 CloudPolicyDataStore::UserAffiliation affiliation, |
| 38 const em::DevicePolicyRequest& request, | 38 const em::DevicePolicyRequest& request, |
| 39 DevicePolicyResponseDelegate* delegate) { | 39 DevicePolicyResponseDelegate* delegate) { |
| 40 backend_->ProcessPolicyRequest(device_management_token, device_id, | 40 backend_->ProcessPolicyRequest(device_management_token, device_id, |
| 41 affiliation, request, delegate); | 41 affiliation, request, delegate); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void ProxyDeviceManagementBackend::ProcessAutoEnrollmentRequest( |
| 45 const std::string& device_id, |
| 46 const em::DeviceAutoEnrollmentRequest& request, |
| 47 DeviceAutoEnrollmentResponseDelegate* delegate) { |
| 48 backend_->ProcessAutoEnrollmentRequest(device_id, request, delegate); |
| 49 } |
| 50 |
| 44 MockDeviceManagementService::MockDeviceManagementService() | 51 MockDeviceManagementService::MockDeviceManagementService() |
| 45 : DeviceManagementService("") {} | 52 : DeviceManagementService("") {} |
| 46 | 53 |
| 47 MockDeviceManagementService::~MockDeviceManagementService() {} | 54 MockDeviceManagementService::~MockDeviceManagementService() {} |
| 48 | 55 |
| 49 } // namespace policy | 56 } // namespace policy |
| OLD | NEW |