diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 17:15:28 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 17:15:28 +0000 |
commit | 71d504f2410920009ce8429eb8d4e7d19db70707 (patch) | |
tree | ef0f58c9e69d715f968c21e8c07e623309c2a4e9 /content/test/content_browser_test.h | |
parent | 5d96bbe5e4dca8d2282a29fa0c4911314733dee5 (diff) | |
download | chromium_src-71d504f2410920009ce8429eb8d4e7d19db70707.zip chromium_src-71d504f2410920009ce8429eb8d4e7d19db70707.tar.gz chromium_src-71d504f2410920009ce8429eb8d4e7d19db70707.tar.bz2 |
Move all the layout tests that ran under browser_tests to run under content_browsertests.
To support the new tests, I added new methods to create new normal/incognito windows in content_browsertests.
BUG=90448
Review URL: https://chromiumcodereview.appspot.com/10820007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/content_browser_test.h')
-rw-r--r-- | content/test/content_browser_test.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/content/test/content_browser_test.h b/content/test/content_browser_test.h index e0acdf8..c9b6da2 100644 --- a/content/test/content_browser_test.h +++ b/content/test/content_browser_test.h @@ -9,6 +9,8 @@ #include "content/public/test/browser_test.h" #include "content/test/browser_test_base.h" +class GURL; + namespace content { class Shell; class ShellMainDelegate; @@ -26,11 +28,17 @@ class ContentBrowserTest : public BrowserTestBase { virtual void RunTestOnMainThreadLoop() OVERRIDE; protected: + // Creates a new window and loads about:blank. + Shell* CreateBrowser(); + + // Creates an off-the-record window and loads about:blank. + Shell* CreateOffTheRecordBrowser(); + // Returns the window for the test. Shell* shell() const { return shell_; } private: - scoped_ptr<content::ShellMainDelegate> shell_main_delegate_; + scoped_ptr<content::ShellMainDelegate> shell_main_delegate_; Shell* shell_; }; |