| 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 #ifndef CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
| 6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const em::DeviceRegisterRequest& request, | 32 const em::DeviceRegisterRequest& request, |
| 33 DeviceRegisterResponseDelegate* delegate) OVERRIDE; | 33 DeviceRegisterResponseDelegate* delegate) OVERRIDE; |
| 34 virtual void ProcessUnregisterRequest( | 34 virtual void ProcessUnregisterRequest( |
| 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 const em::DeviceUnregisterRequest& request, | 37 const em::DeviceUnregisterRequest& request, |
| 38 DeviceUnregisterResponseDelegate* delegate) OVERRIDE; | 38 DeviceUnregisterResponseDelegate* delegate) OVERRIDE; |
| 39 virtual void ProcessPolicyRequest( | 39 virtual void ProcessPolicyRequest( |
| 40 const std::string& device_management_token, | 40 const std::string& device_management_token, |
| 41 const std::string& device_id, | 41 const std::string& device_id, |
| 42 CloudPolicyDataStore::UserAffiliation affiliation, | |
| 43 const em::DevicePolicyRequest& request, | 42 const em::DevicePolicyRequest& request, |
| 44 DevicePolicyResponseDelegate* delegate) OVERRIDE; | 43 DevicePolicyResponseDelegate* delegate) OVERRIDE; |
| 45 | 44 |
| 46 private: | 45 private: |
| 47 DeviceManagementBackend* backend_; // weak | 46 DeviceManagementBackend* backend_; // weak |
| 48 DISALLOW_COPY_AND_ASSIGN(ProxyDeviceManagementBackend); | 47 DISALLOW_COPY_AND_ASSIGN(ProxyDeviceManagementBackend); |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 class MockDeviceManagementService : public DeviceManagementService { | 50 class MockDeviceManagementService : public DeviceManagementService { |
| 52 public: | 51 public: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 80 | 79 |
| 81 // Use this to make StartJob send a faked response to the job immediately. | 80 // Use this to make StartJob send a faked response to the job immediately. |
| 82 ACTION_P4(MockDeviceManagementServiceRespondToJob, status, response_code, | 81 ACTION_P4(MockDeviceManagementServiceRespondToJob, status, response_code, |
| 83 cookies, data) { | 82 cookies, data) { |
| 84 arg0->HandleResponse(status, response_code, cookies, data); | 83 arg0->HandleResponse(status, response_code, cookies, data); |
| 85 } | 84 } |
| 86 | 85 |
| 87 } // namespace policy | 86 } // namespace policy |
| 88 | 87 |
| 89 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 88 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
| OLD | NEW |