#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/metrics/metrics_memory_details.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "components/page_load_metrics/browser/page_load_metrics_test_waiter.h"
#include "components/variations/active_field_trials.h"
#include "content/public/browser/site_isolation_policy.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "services/network/public/cpp/features.h"
#include "url/gurl.h"
Bucket;
namespace {
class TestMemoryDetails : public MetricsMemoryDetails { … };
#define HasOneSample(x) …
}
class OriginAgentClusterBrowserTest : public InProcessBrowserTest { … };
class OriginAgentClusterDisabledBrowserTest
: public OriginAgentClusterBrowserTest { … };
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest, Navigations) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsSimple) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterDisabledBrowserTest,
ProcessCountMetricsSimple) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsNoBaseOrigin) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsNoOACs) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsTwoSubOrigins) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsTwoTabs) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsNoCmdLineIsolation) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsNoCmdLineIsolationWithOAC1) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsNoCmdLineIsolationWithOAC2) { … }
IN_PROC_BROWSER_TEST_F(OriginAgentClusterBrowserTest,
ProcessCountMetricsNoCmdLineIsolationWithOAC3) { … }