| 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 "content/public/test/content_browser_test.h" | 10 #include "content/public/test/content_browser_test.h" |
| 11 #include "content/test/content_browser_test_utils_internal.h" | 11 #include "content/test/content_browser_test_utils_internal.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class FrameTreeNode; | 16 class FrameTreeNode; |
| 17 class Shell; | 17 class Shell; |
| 18 | 18 |
| 19 class SitePerProcessBrowserTest : public ContentBrowserTest { | 19 class SitePerProcessBrowserTest : public ContentBrowserTest { |
| 20 public: | 20 public: |
| 21 SitePerProcessBrowserTest(); | 21 SitePerProcessBrowserTest(); |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 // Start at a data URL so each extra navigation creates a navigation entry. | |
| 25 // (The first navigation will silently be classified as AUTO_SUBFRAME.) | |
| 26 // TODO(creis): This won't be necessary when we can wait for LOAD_STOP. | |
| 27 void StartFrameAtDataURL(); | |
| 28 | |
| 29 std::string DepictFrameTree(FrameTreeNode* node); | 24 std::string DepictFrameTree(FrameTreeNode* node); |
| 30 | 25 |
| 31 void SetUpCommandLine(base::CommandLine* command_line) override; | 26 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 32 void SetUpOnMainThread() override; | 27 void SetUpOnMainThread() override; |
| 33 | 28 |
| 34 private: | 29 private: |
| 35 FrameTreeVisualizer visualizer_; | 30 FrameTreeVisualizer visualizer_; |
| 36 }; | 31 }; |
| 37 | 32 |
| 38 } // namespace content | 33 } // namespace content |
| 39 | 34 |
| 40 #endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ | 35 #endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_ |
| OLD | NEW |