chromium/chrome/browser/net/network_quality_estimator_browsertest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <map>
#include <memory>

#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/field_trial.h"
#include "base/run_loop.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/net/system_network_context_manager.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/variations/variations_associated_data.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_test.h"
#include "net/base/features.h"
#include "net/nqe/network_quality_estimator.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/network_quality_tracker.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace {

class TestNetworkQualityObserver
    : public network::NetworkQualityTracker::EffectiveConnectionTypeObserver {};

void CheckEffectiveConnectionType(net::EffectiveConnectionType expected) {}

class NetworkQualityEstimatorBrowserTest : public InProcessBrowserTest {};

class NetworkQualityEstimatorEctCommandLineBrowserTest
    : public NetworkQualityEstimatorBrowserTest {};

IN_PROC_BROWSER_TEST_F(NetworkQualityEstimatorEctCommandLineBrowserTest,
                       ForceECTFromCommandLine) {}

class NetworkQualityEstimatorEctFieldTrialBrowserTest
    : public NetworkQualityEstimatorBrowserTest {};

IN_PROC_BROWSER_TEST_F(NetworkQualityEstimatorEctFieldTrialBrowserTest,
                       ForceECTUsingFieldTrial) {}

class NetworkQualityEstimatorEctFieldTrialAndCommandLineBrowserTest
    : public NetworkQualityEstimatorEctFieldTrialBrowserTest {};

IN_PROC_BROWSER_TEST_F(
    NetworkQualityEstimatorEctFieldTrialAndCommandLineBrowserTest,
    ECTFromCommandLineOverridesFieldTrial) {}

}  // namespace