| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 // Creates and initializes a profile sync service if the tests require one. | 266 // Creates and initializes a profile sync service if the tests require one. |
| 267 virtual TokenService* GetTokenService(); | 267 virtual TokenService* GetTokenService(); |
| 268 virtual ProfileSyncService* GetProfileSyncService(); | 268 virtual ProfileSyncService* GetProfileSyncService(); |
| 269 virtual ProfileSyncService* GetProfileSyncService( | 269 virtual ProfileSyncService* GetProfileSyncService( |
| 270 const std::string& cros_notes); | 270 const std::string& cros_notes); |
| 271 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 271 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
| 272 virtual ChromeBlobStorageContext* GetBlobStorageContext(); | 272 virtual ChromeBlobStorageContext* GetBlobStorageContext(); |
| 273 virtual ExtensionInfoMap* GetExtensionInfoMap(); | 273 virtual ExtensionInfoMap* GetExtensionInfoMap(); |
| 274 virtual PromoCounter* GetInstantPromoCounter(); | 274 virtual PromoCounter* GetInstantPromoCounter(); |
| 275 virtual policy::ProfilePolicyContext* GetPolicyContext(); | 275 virtual policy::ProfilePolicyConnector* GetPolicyConnector(); |
| 276 virtual PrerenderManager* GetPrerenderManager(); | 276 virtual PrerenderManager* GetPrerenderManager(); |
| 277 virtual PrefService* GetOffTheRecordPrefs(); | 277 virtual PrefService* GetOffTheRecordPrefs(); |
| 278 | 278 |
| 279 protected: | 279 protected: |
| 280 base::Time start_time_; | 280 base::Time start_time_; |
| 281 scoped_ptr<PrefService> prefs_; | 281 scoped_ptr<PrefService> prefs_; |
| 282 // ref only for right type, lifecycle is managed by prefs_ | 282 // ref only for right type, lifecycle is managed by prefs_ |
| 283 TestingPrefService* testing_prefs_; | 283 TestingPrefService* testing_prefs_; |
| 284 | 284 |
| 285 private: | 285 private: |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 393 |
| 394 virtual ProfileId GetRuntimeId() { | 394 virtual ProfileId GetRuntimeId() { |
| 395 return original_profile_->GetRuntimeId(); | 395 return original_profile_->GetRuntimeId(); |
| 396 } | 396 } |
| 397 | 397 |
| 398 protected: | 398 protected: |
| 399 Profile* original_profile_; | 399 Profile* original_profile_; |
| 400 }; | 400 }; |
| 401 | 401 |
| 402 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 402 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |