#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/proxy_resolution/proxy_config_service_linux.h"
#include <map>
#include <string>
#include <string_view>
#include <vector>
#include "base/check.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/message_loop/message_pump_type.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "net/proxy_resolution/proxy_config.h"
#include "net/proxy_resolution/proxy_config_service_common_unittest.h"
#include "net/test/test_with_task_environment.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
namespace net {
namespace {
struct EnvVarValues { … };
#undef TRUE
#undef FALSE
enum BoolSettingValue { … };
struct GSettingsValues { … };
template <typename key_type, typename value_type>
struct SettingsTable { … };
class MockEnvironment : public base::Environment { … };
class MockSettingGetter : public ProxyConfigServiceLinux::SettingGetter { … };
class SyncConfigGetter : public ProxyConfigService::Observer { … };
class ProxyConfigServiceLinuxTest : public PlatformTest,
public WithTaskEnvironment { … };
#define TEST_DESC(desc) …
TEST_F(ProxyConfigServiceLinuxTest, BasicGSettingsTest) { … }
TEST_F(ProxyConfigServiceLinuxTest, BasicEnvTest) { … }
TEST_F(ProxyConfigServiceLinuxTest, GSettingsNotification) { … }
TEST_F(ProxyConfigServiceLinuxTest, KDEConfigParser) { … }
TEST_F(ProxyConfigServiceLinuxTest, KDEHomePicker) { … }
TEST_F(ProxyConfigServiceLinuxTest, KDEFileChanged) { … }
TEST_F(ProxyConfigServiceLinuxTest, KDEMultipleKioslaverc) { … }
}
}