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

Side by Side Diff: content/test/content_browser_test.h

Issue 214823006: Move ContentBrowserTest class to content/public, since it's used by components_browsertests for bro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: remove other files Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/savable_resources_browsertest.cc ('k') | content/test/content_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_H_
6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/test/browser_test.h"
10 #include "content/public/test/browser_test_base.h"
11
12 class GURL;
13
14 namespace content {
15 class ContentRendererClient;
16 class Shell;
17 class ShellMainDelegate;
18
19 class ContentBrowserTest : public BrowserTestBase {
20 protected:
21 ContentBrowserTest();
22 virtual ~ContentBrowserTest();
23
24 // testing::Test:
25 virtual void SetUp() OVERRIDE;
26 virtual void TearDown() OVERRIDE;
27
28 // BrowserTestBase:
29 virtual void RunTestOnMainThreadLoop() OVERRIDE;
30
31 protected:
32 // Creates a new window and loads about:blank.
33 Shell* CreateBrowser();
34
35 // Creates an off-the-record window and loads about:blank.
36 Shell* CreateOffTheRecordBrowser();
37
38 // Returns the window for the test.
39 Shell* shell() const { return shell_; }
40
41 private:
42 Shell* shell_;
43
44 bool setup_called_;
45
46 #if defined(OS_ANDROID)
47 // For all other platforms, this is done automatically when calling into
48 // ContentMain. For Android we set things up manually.
49 scoped_ptr<ShellMainDelegate> shell_main_delegate_;
50 #endif
51 };
52
53 } // namespace content
54
55 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « content/renderer/savable_resources_browsertest.cc ('k') | content/test/content_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698