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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // ExtensionService to make sure that is still alive to be notified when the | 142 // ExtensionService to make sure that is still alive to be notified when the |
143 // profile is destroyed. | 143 // profile is destroyed. |
144 ExtensionService* CreateExtensionService(const CommandLine* command_line, | 144 ExtensionService* CreateExtensionService(const CommandLine* command_line, |
145 const FilePath& install_directory, | 145 const FilePath& install_directory, |
146 bool autoupdate_enabled); | 146 bool autoupdate_enabled); |
147 | 147 |
148 TestingPrefService* GetTestingPrefService(); | 148 TestingPrefService* GetTestingPrefService(); |
149 | 149 |
150 // content::BrowserContext | 150 // content::BrowserContext |
151 virtual FilePath GetPath() OVERRIDE; | 151 virtual FilePath GetPath() OVERRIDE; |
152 virtual bool IsOffTheRecord() OVERRIDE; | 152 virtual bool IsOffTheRecord() const OVERRIDE; |
153 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; | 153 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; |
154 // Returns a testing ContextGetter (if one has been created via | 154 // Returns a testing ContextGetter (if one has been created via |
155 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: | 155 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: |
156 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because | 156 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because |
157 // of the special memory management considerations for the | 157 // of the special memory management considerations for the |
158 // TestURLRequestContextGetter class, many tests would find themseleves | 158 // TestURLRequestContextGetter class, many tests would find themseleves |
159 // leaking if they called this method without the necessary IO thread. This | 159 // leaking if they called this method without the necessary IO thread. This |
160 // getter is currently only capable of returning a Context that helps test | 160 // getter is currently only capable of returning a Context that helps test |
161 // the CookieMonster. See implementation comments for more details. | 161 // the CookieMonster. See implementation comments for more details. |
162 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 162 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // testing. | 382 // testing. |
383 ProfileDependencyManager* profile_dependency_manager_; | 383 ProfileDependencyManager* profile_dependency_manager_; |
384 | 384 |
385 scoped_ptr<content::MockResourceContext> resource_context_; | 385 scoped_ptr<content::MockResourceContext> resource_context_; |
386 | 386 |
387 // Weak pointer to a delegate for indicating that a profile was created. | 387 // Weak pointer to a delegate for indicating that a profile was created. |
388 Delegate* delegate_; | 388 Delegate* delegate_; |
389 }; | 389 }; |
390 | 390 |
391 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 391 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |