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 CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 5 #ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_H_ |
6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/public/test/browser_test.h" | 9 #include "content/public/test/browser_test.h" |
10 #include "content/test/browser_test_base.h" | 10 #include "content/test/browser_test_base.h" |
11 | 11 |
12 | |
13 namespace content { | 12 namespace content { |
14 class Shell; | 13 class Shell; |
15 class ShellMainDelegate; | 14 class ShellMainDelegate; |
16 | 15 |
17 class ContentBrowserTest : public BrowserTestBase { | 16 class ContentBrowserTest : public BrowserTestBase { |
18 protected: | 17 protected: |
19 ContentBrowserTest(); | 18 ContentBrowserTest(); |
20 virtual ~ContentBrowserTest(); | 19 virtual ~ContentBrowserTest(); |
21 | 20 |
22 // testing::Test: | 21 // testing::Test: |
23 virtual void SetUp() OVERRIDE; | 22 virtual void SetUp() OVERRIDE; |
24 virtual void TearDown() OVERRIDE; | 23 virtual void TearDown() OVERRIDE; |
25 | 24 |
26 // BrowserTestBase: | 25 // BrowserTestBase: |
27 virtual void RunTestOnMainThreadLoop() OVERRIDE; | 26 virtual void RunTestOnMainThreadLoop() OVERRIDE; |
28 | 27 |
| 28 protected: |
29 // Returns the window for the test. | 29 // Returns the window for the test. |
30 Shell* shell() const { return shell_; } | 30 Shell* shell() const { return shell_; } |
31 | 31 |
32 private: | 32 private: |
33 scoped_ptr<content::ShellMainDelegate> shell_main_delegate_; | 33 scoped_ptr<content::ShellMainDelegate> shell_main_delegate_; |
34 | 34 |
35 Shell* shell_; | 35 Shell* shell_; |
36 }; | 36 }; |
37 | 37 |
38 } // namespace content | 38 } // namespace content |
39 | 39 |
40 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 40 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_H_ |
OLD | NEW |