| 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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_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" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementServiceConfiguration); | 41 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementServiceConfiguration); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class MockDeviceManagementService : public DeviceManagementService { | 44 class MockDeviceManagementService : public DeviceManagementService { |
| 45 public: | 45 public: |
| 46 MockDeviceManagementService(); | 46 MockDeviceManagementService(); |
| 47 virtual ~MockDeviceManagementService(); | 47 virtual ~MockDeviceManagementService(); |
| 48 | 48 |
| 49 typedef DeviceManagementRequestJob* CreateJobFunction( | 49 typedef DeviceManagementRequestJob* CreateJobFunction( |
| 50 DeviceManagementRequestJob::JobType, net::URLRequestContextGetter*); | 50 DeviceManagementRequestJob::JobType, |
| 51 const scoped_refptr<net::URLRequestContextGetter>&); |
| 51 | 52 |
| 52 MOCK_METHOD2(CreateJob, CreateJobFunction); | 53 MOCK_METHOD2(CreateJob, CreateJobFunction); |
| 53 MOCK_METHOD7( | 54 MOCK_METHOD7( |
| 54 StartJob, | 55 StartJob, |
| 55 void(const std::string& request_type, | 56 void(const std::string& request_type, |
| 56 const std::string& gaia_token, | 57 const std::string& gaia_token, |
| 57 const std::string& oauth_token, | 58 const std::string& oauth_token, |
| 58 const std::string& dm_token, | 59 const std::string& dm_token, |
| 59 const std::string& user_affiliation, | 60 const std::string& user_affiliation, |
| 60 const std::string& client_id, | 61 const std::string& client_id, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 testing::Action<CreateJobFunction> CreateAsyncJob( | 73 testing::Action<CreateJobFunction> CreateAsyncJob( |
| 73 MockDeviceManagementJob** job); | 74 MockDeviceManagementJob** job); |
| 74 | 75 |
| 75 private: | 76 private: |
| 76 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService); | 77 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace policy | 80 } // namespace policy |
| 80 | 81 |
| 81 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ | 82 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ |
| OLD | NEW |