OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // This is NOT invoked from CreateHistoryService. | 171 // This is NOT invoked from CreateHistoryService. |
172 void BlockUntilHistoryIndexIsRefreshed(); | 172 void BlockUntilHistoryIndexIsRefreshed(); |
173 | 173 |
174 // Blocks until TopSites finishes loading. | 174 // Blocks until TopSites finishes loading. |
175 void BlockUntilTopSitesLoaded(); | 175 void BlockUntilTopSitesLoaded(); |
176 | 176 |
177 TestingPrefService* GetTestingPrefService(); | 177 TestingPrefService* GetTestingPrefService(); |
178 | 178 |
179 // content::BrowserContext | 179 // content::BrowserContext |
180 virtual FilePath GetPath() OVERRIDE; | 180 virtual FilePath GetPath() OVERRIDE; |
| 181 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
181 virtual bool IsOffTheRecord() const OVERRIDE; | 182 virtual bool IsOffTheRecord() const OVERRIDE; |
182 virtual content::DownloadManagerDelegate* | 183 virtual content::DownloadManagerDelegate* |
183 GetDownloadManagerDelegate() OVERRIDE; | 184 GetDownloadManagerDelegate() OVERRIDE; |
184 // Returns a testing ContextGetter (if one has been created via | 185 // Returns a testing ContextGetter (if one has been created via |
185 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: | 186 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: |
186 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because | 187 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because |
187 // of the special memory management considerations for the | 188 // of the special memory management considerations for the |
188 // TestURLRequestContextGetter class, many tests would find themseleves | 189 // TestURLRequestContextGetter class, many tests would find themseleves |
189 // leaking if they called this method without the necessary IO thread. This | 190 // leaking if they called this method without the necessary IO thread. This |
190 // getter is currently only capable of returning a Context that helps test | 191 // getter is currently only capable of returning a Context that helps test |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // testing. | 367 // testing. |
367 ProfileDependencyManager* profile_dependency_manager_; | 368 ProfileDependencyManager* profile_dependency_manager_; |
368 | 369 |
369 scoped_ptr<content::MockResourceContext> resource_context_; | 370 scoped_ptr<content::MockResourceContext> resource_context_; |
370 | 371 |
371 // Weak pointer to a delegate for indicating that a profile was created. | 372 // Weak pointer to a delegate for indicating that a profile was created. |
372 Delegate* delegate_; | 373 Delegate* delegate_; |
373 }; | 374 }; |
374 | 375 |
375 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 376 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |