OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TEST_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 301 |
302 // Creates and initializes a profile sync service if the tests require one. | 302 // Creates and initializes a profile sync service if the tests require one. |
303 virtual TokenService* GetTokenService(); | 303 virtual TokenService* GetTokenService(); |
304 virtual ProfileSyncService* GetProfileSyncService(); | 304 virtual ProfileSyncService* GetProfileSyncService(); |
305 virtual ProfileSyncService* GetProfileSyncService( | 305 virtual ProfileSyncService* GetProfileSyncService( |
306 const std::string& cros_notes); | 306 const std::string& cros_notes); |
307 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } | 307 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } |
308 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; } | 308 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; } |
309 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; } | 309 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; } |
310 virtual PromoCounter* GetInstantPromoCounter() { return NULL; } | 310 virtual PromoCounter* GetInstantPromoCounter() { return NULL; } |
| 311 virtual policy::DeviceManagementService* GetDeviceManagementService() { |
| 312 return NULL; |
| 313 } |
311 virtual policy::DeviceManagementPolicyProvider* | 314 virtual policy::DeviceManagementPolicyProvider* |
312 GetDeviceManagementPolicyProvider() { | 315 GetDeviceManagementPolicyProvider() { |
313 return NULL; | 316 return NULL; |
314 } | 317 } |
315 | 318 |
316 protected: | 319 protected: |
317 base::Time start_time_; | 320 base::Time start_time_; |
318 scoped_ptr<PrefService> prefs_; | 321 scoped_ptr<PrefService> prefs_; |
319 // ref only for right type, lifecycle is managed by prefs_ | 322 // ref only for right type, lifecycle is managed by prefs_ |
320 TestingPrefService* testing_prefs_; | 323 TestingPrefService* testing_prefs_; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 424 |
422 virtual ProfileId GetRuntimeId() { | 425 virtual ProfileId GetRuntimeId() { |
423 return original_profile_->GetRuntimeId(); | 426 return original_profile_->GetRuntimeId(); |
424 } | 427 } |
425 | 428 |
426 protected: | 429 protected: |
427 Profile* original_profile_; | 430 Profile* original_profile_; |
428 }; | 431 }; |
429 | 432 |
430 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 433 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |