
Current implementation uses an old-styled field trial flag.
To make server side configurations and client side flag handling easy
and clear, convert the field trial flag to use FeatureList.
BUG=710060
Review-Url: https://codereview.chromium.org/2806263005
Cr-Original-Commit-Position: refs/heads/master@{#465867}
Committed: f8b7dc953a
Review-Url: https://codereview.chromium.org/2806263005
Cr-Commit-Position: refs/heads/master@{#466032}
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
// 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 "base/macros.h"
|
|
#include "base/test/scoped_feature_list.h"
|
|
#include "content/browser/web_contents/web_contents_impl.h"
|
|
#include "content/public/test/content_browser_test.h"
|
|
#include "content/shell/browser/shell.h"
|
|
#include "content/test/content_browser_test_utils_internal.h"
|
|
#include "url/gurl.h"
|
|
|
|
namespace content {
|
|
|
|
class FrameTreeNode;
|
|
|
|
class SitePerProcessBrowserTest : public ContentBrowserTest {
|
|
public:
|
|
SitePerProcessBrowserTest();
|
|
|
|
protected:
|
|
std::string DepictFrameTree(FrameTreeNode* node);
|
|
|
|
void SetUpCommandLine(base::CommandLine* command_line) override;
|
|
void SetUpOnMainThread() override;
|
|
|
|
WebContentsImpl* web_contents() const {
|
|
return static_cast<WebContentsImpl*>(shell()->web_contents());
|
|
}
|
|
|
|
private:
|
|
FrameTreeVisualizer visualizer_;
|
|
base::test::ScopedFeatureList feature_list_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(SitePerProcessBrowserTest);
|
|
};
|
|
|
|
} // namespace content
|
|
|
|
#endif // CONTENT_BROWSER_SITE_PER_PROCESS_BROWSERTEST_H_
|