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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 // Creates and initializes a profile sync service if the tests require one. | 268 // Creates and initializes a profile sync service if the tests require one. |
269 virtual TokenService* GetTokenService(); | 269 virtual TokenService* GetTokenService(); |
270 virtual ProfileSyncService* GetProfileSyncService(); | 270 virtual ProfileSyncService* GetProfileSyncService(); |
271 virtual ProfileSyncService* GetProfileSyncService( | 271 virtual ProfileSyncService* GetProfileSyncService( |
272 const std::string& cros_notes); | 272 const std::string& cros_notes); |
273 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 273 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
274 virtual ChromeBlobStorageContext* GetBlobStorageContext(); | 274 virtual ChromeBlobStorageContext* GetBlobStorageContext(); |
275 virtual ExtensionInfoMap* GetExtensionInfoMap(); | 275 virtual ExtensionInfoMap* GetExtensionInfoMap(); |
276 virtual PromoCounter* GetInstantPromoCounter(); | 276 virtual PromoCounter* GetInstantPromoCounter(); |
277 virtual policy::ProfilePolicyContext* GetPolicyContext(); | 277 virtual policy::ProfilePolicyConnector* GetPolicyConnector(); |
278 virtual ChromeURLDataManager* GetChromeURLDataManager(); | 278 virtual ChromeURLDataManager* GetChromeURLDataManager(); |
279 virtual prerender::PrerenderManager* GetPrerenderManager(); | 279 virtual prerender::PrerenderManager* GetPrerenderManager(); |
280 virtual PrefService* GetOffTheRecordPrefs(); | 280 virtual PrefService* GetOffTheRecordPrefs(); |
281 | 281 |
282 protected: | 282 protected: |
283 base::Time start_time_; | 283 base::Time start_time_; |
284 scoped_ptr<PrefService> prefs_; | 284 scoped_ptr<PrefService> prefs_; |
285 // ref only for right type, lifecycle is managed by prefs_ | 285 // ref only for right type, lifecycle is managed by prefs_ |
286 TestingPrefService* testing_prefs_; | 286 TestingPrefService* testing_prefs_; |
287 | 287 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 explicit DerivedTestingProfile(Profile* profile); | 396 explicit DerivedTestingProfile(Profile* profile); |
397 virtual ~DerivedTestingProfile(); | 397 virtual ~DerivedTestingProfile(); |
398 | 398 |
399 virtual ProfileId GetRuntimeId(); | 399 virtual ProfileId GetRuntimeId(); |
400 | 400 |
401 protected: | 401 protected: |
402 Profile* original_profile_; | 402 Profile* original_profile_; |
403 }; | 403 }; |
404 | 404 |
405 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 405 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |