blob: 9e74bd70ee0ba37cf044174722bf85f206eb2abd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
#define CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
#include <string>
#include "content/public/test/content_browser_test.h"
#include "content/test/content_browser_test_utils_internal.h"
#include "url/gurl.h"
namespace content {
class FrameTreeNode;
class Shell;
class SitePerProcessBrowserTest : public ContentBrowserTest {
public:
SitePerProcessBrowserTest();
protected:
// Start at a data URL so each extra navigation creates a navigation entry.
// (The first navigation will silently be classified as AUTO_SUBFRAME.)
// TODO(creis): This won't be necessary when we can wait for LOAD_STOP.
void StartFrameAtDataURL();
std::string DepictFrameTree(FrameTreeNode* node);
void SetUpCommandLine(base::CommandLine* command_line) override;
void SetUpOnMainThread() override;
private:
FrameTreeVisualizer visualizer_;
};
} // namespace content
#endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
|