chromium/components/proxy_config/pref_proxy_config_tracker_impl_unittest.cc

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

#include "components/proxy_config/pref_proxy_config_tracker_impl.h"

#include <memory>
#include <string>

#include "base/files/file_path.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "components/proxy_config/proxy_config_dictionary.h"
#include "components/proxy_config/proxy_config_pref_names.h"
#include "net/base/proxy_string_util.h"
#include "net/proxy_resolution/proxy_info.h"
#include "net/proxy_resolution/proxy_list.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

_;
Mock;

namespace {

const char kFixedPacUrl[] =;

// Testing proxy config service that allows us to fire notifications at will.
class TestProxyConfigService : public net::ProxyConfigService {};

// A mock observer for capturing callbacks.
class MockObserver : public net::ProxyConfigService::Observer {};

class PrefProxyConfigTrackerImplTest : public testing::Test {};

TEST_F(PrefProxyConfigTrackerImplTest, BaseConfiguration) {}

TEST_F(PrefProxyConfigTrackerImplTest, DynamicPrefOverrides) {}

// Compares proxy configurations, but allows different sources.
MATCHER_P(ProxyConfigMatches, config, "") {}

TEST_F(PrefProxyConfigTrackerImplTest, Observers) {}

TEST_F(PrefProxyConfigTrackerImplTest, Fallback) {}

TEST_F(PrefProxyConfigTrackerImplTest, ExplicitSystemSettings) {}

// Test the case where the delegate service gets a config only after the service
// is created.
TEST_F(PrefProxyConfigTrackerImplTest, DelegateConfigServiceGetsConfigLate) {}

}  // namespace