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::DeviceManagementPolicyProvider* |
| 312 GetDeviceManagementPolicyProvider() { |
| 313 return NULL; |
| 314 } |
311 | 315 |
312 protected: | 316 protected: |
313 base::Time start_time_; | 317 base::Time start_time_; |
314 scoped_ptr<PrefService> prefs_; | 318 scoped_ptr<PrefService> prefs_; |
315 // ref only for right type, lifecycle is managed by prefs_ | 319 // ref only for right type, lifecycle is managed by prefs_ |
316 TestingPrefService* testing_prefs_; | 320 TestingPrefService* testing_prefs_; |
317 | 321 |
318 private: | 322 private: |
319 // Destroys favicon service if it has been created. | 323 // Destroys favicon service if it has been created. |
320 void DestroyFaviconService(); | 324 void DestroyFaviconService(); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 421 |
418 virtual ProfileId GetRuntimeId() { | 422 virtual ProfileId GetRuntimeId() { |
419 return original_profile_->GetRuntimeId(); | 423 return original_profile_->GetRuntimeId(); |
420 } | 424 } |
421 | 425 |
422 protected: | 426 protected: |
423 Profile* original_profile_; | 427 Profile* original_profile_; |
424 }; | 428 }; |
425 | 429 |
426 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 430 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |