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 #ifndef CHROME_BROWSER_POLICY_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/browser/policy/cloud/device_management_service.h" | |
12 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" | 11 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
| 12 #include "components/policy/core/common/cloud/device_management_service.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 | 16 |
17 class MockDeviceManagementJob { | 17 class MockDeviceManagementJob { |
18 public: | 18 public: |
19 virtual ~MockDeviceManagementJob(); | 19 virtual ~MockDeviceManagementJob(); |
20 virtual void RetryJob() = 0; | 20 virtual void RetryJob() = 0; |
21 virtual void SendResponse( | 21 virtual void SendResponse( |
22 DeviceManagementStatus status, | 22 DeviceManagementStatus status, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // delay job completion. | 71 // delay job completion. |
72 testing::Action<CreateJobFunction> CreateAsyncJob( | 72 testing::Action<CreateJobFunction> CreateAsyncJob( |
73 MockDeviceManagementJob** job); | 73 MockDeviceManagementJob** job); |
74 | 74 |
75 private: | 75 private: |
76 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService); | 76 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace policy | 79 } // namespace policy |
80 | 80 |
81 #endif // CHROME_BROWSER_POLICY_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 81 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
OLD | NEW |