| 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_BASE_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 void SetPrefService(PrefService* prefs); | 179 void SetPrefService(PrefService* prefs); |
| 180 virtual PrefService* GetPrefs(); | 180 virtual PrefService* GetPrefs(); |
| 181 virtual TemplateURLFetcher* GetTemplateURLFetcher(); | 181 virtual TemplateURLFetcher* GetTemplateURLFetcher(); |
| 182 virtual history::TopSites* GetTopSites(); | 182 virtual history::TopSites* GetTopSites(); |
| 183 virtual history::TopSites* GetTopSitesWithoutCreating(); | 183 virtual history::TopSites* GetTopSitesWithoutCreating(); |
| 184 virtual DownloadManager* GetDownloadManager(); | 184 virtual DownloadManager* GetDownloadManager(); |
| 185 virtual PersonalDataManager* GetPersonalDataManager(); | 185 virtual PersonalDataManager* GetPersonalDataManager(); |
| 186 virtual fileapi::FileSystemContext* GetFileSystemContext(); | 186 virtual fileapi::FileSystemContext* GetFileSystemContext(); |
| 187 virtual void SetQuotaManager(quota::QuotaManager* manager); | 187 virtual void SetQuotaManager(quota::QuotaManager* manager); |
| 188 virtual quota::QuotaManager* GetQuotaManager(); | 188 virtual quota::QuotaManager* GetQuotaManager(); |
| 189 virtual BrowserSignin* GetBrowserSignin(); | |
| 190 virtual bool HasCreatedDownloadManager() const; | 189 virtual bool HasCreatedDownloadManager() const; |
| 191 | 190 |
| 192 // Returns a testing ContextGetter (if one has been created via | 191 // Returns a testing ContextGetter (if one has been created via |
| 193 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: | 192 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: |
| 194 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because | 193 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because |
| 195 // of the special memory management considerations for the | 194 // of the special memory management considerations for the |
| 196 // TestURLRequestContextGetter class, many tests would find themseleves | 195 // TestURLRequestContextGetter class, many tests would find themseleves |
| 197 // leaking if they called this method without the necessary IO thread. This | 196 // leaking if they called this method without the necessary IO thread. This |
| 198 // getter is currently only capable of returning a Context that helps test | 197 // getter is currently only capable of returning a Context that helps test |
| 199 // the CookieMonster. See implementation comments for more details. | 198 // the CookieMonster. See implementation comments for more details. |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 // testing. | 389 // testing. |
| 391 ProfileDependencyManager* profile_dependency_manager_; | 390 ProfileDependencyManager* profile_dependency_manager_; |
| 392 | 391 |
| 393 scoped_refptr<ChromeAppCacheService> appcache_service_; | 392 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 394 | 393 |
| 395 // The QuotaManager, only available if set explicitly via SetQuotaManager. | 394 // The QuotaManager, only available if set explicitly via SetQuotaManager. |
| 396 scoped_refptr<quota::QuotaManager> quota_manager_; | 395 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 397 }; | 396 }; |
| 398 | 397 |
| 399 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 398 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |