Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Unified Diff: chrome/test/base/test_browser_window.h

Issue 10692195: Consolidate Browser Creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | chrome/test/base/test_browser_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/test_browser_window.h
===================================================================
--- chrome/test/base/test_browser_window.h (revision 148382)
+++ chrome/test/base/test_browser_window.h (working copy)
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "build/build_config.h"
+#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/test/base/test_location_bar.h"
@@ -20,7 +21,7 @@
// See BrowserWithTestWindowTest for an example of using this class.
class TestBrowserWindow : public BrowserWindow {
public:
- explicit TestBrowserWindow(Browser* browser);
+ TestBrowserWindow();
virtual ~TestBrowserWindow();
// BrowserWindow:
@@ -150,4 +151,12 @@
DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow);
};
+namespace chrome {
+
+// Helpers that handle the lifetime of TestBrowserWindow instances.
+Browser* CreateBrowserWithTestWindowForProfile(Profile* profile);
+Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params);
+
+} // namespace chrome
+
#endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | chrome/test/base/test_browser_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698