| 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_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
| 6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 6 #define CHROME_BROWSER_POLICY_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/device_management_service.h" | 11 #include "chrome/browser/policy/cloud/device_management_service.h" |
| 12 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 12 #include "chrome/browser/policy/proto/device_management_backend.pb.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( |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // delay job completion. | 53 // delay job completion. |
| 54 testing::Action<CreateJobFunction> CreateAsyncJob( | 54 testing::Action<CreateJobFunction> CreateAsyncJob( |
| 55 MockDeviceManagementJob** job); | 55 MockDeviceManagementJob** job); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService); | 58 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace policy | 61 } // namespace policy |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 63 #endif // CHROME_BROWSER_POLICY_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
| OLD | NEW |