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_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_ |
6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 6 #define CONTENT_PUBLIC_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/public/test/browser_test_base.h" | 10 #include "content/public/test/browser_test_base.h" |
11 | 11 |
12 class GURL; | |
13 | |
14 namespace content { | 12 namespace content { |
15 class ContentRendererClient; | |
16 class Shell; | 13 class Shell; |
17 class ShellMainDelegate; | 14 class ShellMainDelegate; |
18 | 15 |
| 16 // Base class for browser tests which use content_shell. |
19 class ContentBrowserTest : public BrowserTestBase { | 17 class ContentBrowserTest : public BrowserTestBase { |
20 protected: | 18 protected: |
21 ContentBrowserTest(); | 19 ContentBrowserTest(); |
22 virtual ~ContentBrowserTest(); | 20 virtual ~ContentBrowserTest(); |
23 | 21 |
24 // testing::Test: | 22 // testing::Test: |
25 virtual void SetUp() OVERRIDE; | 23 virtual void SetUp() OVERRIDE; |
26 virtual void TearDown() OVERRIDE; | 24 virtual void TearDown() OVERRIDE; |
27 | 25 |
28 // BrowserTestBase: | 26 // BrowserTestBase: |
(...skipping 16 matching lines...) Expand all Loading... |
45 | 43 |
46 #if defined(OS_ANDROID) | 44 #if defined(OS_ANDROID) |
47 // For all other platforms, this is done automatically when calling into | 45 // For all other platforms, this is done automatically when calling into |
48 // ContentMain. For Android we set things up manually. | 46 // ContentMain. For Android we set things up manually. |
49 scoped_ptr<ShellMainDelegate> shell_main_delegate_; | 47 scoped_ptr<ShellMainDelegate> shell_main_delegate_; |
50 #endif | 48 #endif |
51 }; | 49 }; |
52 | 50 |
53 } // namespace content | 51 } // namespace content |
54 | 52 |
55 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 53 #endif // CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_H_ |
OLD | NEW |