OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ | 5 #ifndef CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ |
6 #define CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ | 6 #define CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/test/scoped_feature_list.h" | |
12 #include "content/browser/web_contents/web_contents_impl.h" | 11 #include "content/browser/web_contents/web_contents_impl.h" |
13 #include "content/public/test/content_browser_test.h" | 12 #include "content/public/test/content_browser_test.h" |
14 #include "content/shell/browser/shell.h" | 13 #include "content/shell/browser/shell.h" |
15 #include "content/test/content_browser_test_utils_internal.h" | 14 #include "content/test/content_browser_test_utils_internal.h" |
16 #include "url/gurl.h" | 15 #include "url/gurl.h" |
17 | 16 |
18 namespace content { | 17 namespace content { |
19 | 18 |
20 class FrameTreeNode; | 19 class FrameTreeNode; |
21 | 20 |
22 class SitePerProcessBrowserTest : public ContentBrowserTest { | 21 class SitePerProcessBrowserTest : public ContentBrowserTest { |
23 public: | 22 public: |
24 SitePerProcessBrowserTest(); | 23 SitePerProcessBrowserTest(); |
25 | 24 |
26 protected: | 25 protected: |
27 std::string DepictFrameTree(FrameTreeNode* node); | 26 std::string DepictFrameTree(FrameTreeNode* node); |
28 | 27 |
29 void SetUpCommandLine(base::CommandLine* command_line) override; | 28 void SetUpCommandLine(base::CommandLine* command_line) override; |
30 void SetUpOnMainThread() override; | 29 void SetUpOnMainThread() override; |
31 | 30 |
32 WebContentsImpl* web_contents() const { | 31 WebContentsImpl* web_contents() const { |
33 return static_cast<WebContentsImpl*>(shell()->web_contents()); | 32 return static_cast<WebContentsImpl*>(shell()->web_contents()); |
34 } | 33 } |
35 | 34 |
36 private: | 35 private: |
37 FrameTreeVisualizer visualizer_; | 36 FrameTreeVisualizer visualizer_; |
38 base::test::ScopedFeatureList feature_list_; | |
39 | 37 |
40 DISALLOW_COPY_AND_ASSIGN(SitePerProcessBrowserTest); | 38 DISALLOW_COPY_AND_ASSIGN(SitePerProcessBrowserTest); |
41 }; | 39 }; |
42 | 40 |
43 } // namespace content | 41 } // namespace content |
44 | 42 |
45 #endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ | 43 #endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ |
OLD | NEW |