Chromium Code Reviews| 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_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
| 6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
| 7 | 7 |
| 8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 const GURL& url, | 135 const GURL& url, |
| 136 const base::string16& title); | 136 const base::string16& title); |
| 137 | 137 |
| 138 // Destroys the browser, window, and profile created by this class. This is | 138 // Destroys the browser, window, and profile created by this class. This is |
| 139 // invoked from the destructor. | 139 // invoked from the destructor. |
| 140 void DestroyBrowserAndProfile(); | 140 void DestroyBrowserAndProfile(); |
| 141 | 141 |
| 142 // Creates the profile used by this test. The caller owns the return value. | 142 // Creates the profile used by this test. The caller owns the return value. |
| 143 virtual TestingProfile* CreateProfile(); | 143 virtual TestingProfile* CreateProfile(); |
| 144 | 144 |
| 145 // Provides an opportunity to customize KeyedService factories. | |
|
Paweł Hajdan Jr.
2014/05/05 11:28:09
nit: Align.
| |
| 146 virtual void CustomizeServiceFactories(); | |
| 147 | |
| 145 // Destroys the profile which was created through |CreateProfile|. | 148 // Destroys the profile which was created through |CreateProfile|. |
| 146 virtual void DestroyProfile(TestingProfile* profile); | 149 virtual void DestroyProfile(TestingProfile* profile); |
| 147 | 150 |
| 148 // Creates the BrowserWindow used by this test. The caller owns the return | 151 // Creates the BrowserWindow used by this test. The caller owns the return |
| 149 // value. Can return NULL to use the default window created by Browser. | 152 // value. Can return NULL to use the default window created by Browser. |
| 150 virtual BrowserWindow* CreateBrowserWindow(); | 153 virtual BrowserWindow* CreateBrowserWindow(); |
| 151 | 154 |
| 152 // Creates the browser given |profile|, |browser_type|, |hosted_app|, | 155 // Creates the browser given |profile|, |browser_type|, |hosted_app|, |
| 153 // |host_desktop_type| and |browser_window|. The caller owns the return value. | 156 // |host_desktop_type| and |browser_window|. The caller owns the return value. |
| 154 virtual Browser* CreateBrowser(Profile* profile, | 157 virtual Browser* CreateBrowser(Profile* profile, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 // The desktop to create the initial window on. | 209 // The desktop to create the initial window on. |
| 207 chrome::HostDesktopType host_desktop_type_; | 210 chrome::HostDesktopType host_desktop_type_; |
| 208 | 211 |
| 209 // Whether the browser is part of a hosted app. | 212 // Whether the browser is part of a hosted app. |
| 210 bool hosted_app_; | 213 bool hosted_app_; |
| 211 | 214 |
| 212 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); | 215 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); |
| 213 }; | 216 }; |
| 214 | 217 |
| 215 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 218 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
| OLD | NEW |