blob: 0589705dcbef42767014cf30f116951b8c8064f5 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2015 The Chromium Authors
stevenjbb237e2ae2015-07-02 22:02:112# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
stevenjbb237e2ae2015-07-02 22:02:115component("proxy_config") {
6 sources = [
abhishek.a2171c612852015-08-31 10:48:197 "pref_proxy_config_tracker.cc",
8 "pref_proxy_config_tracker.h",
9 "pref_proxy_config_tracker_impl.cc",
10 "pref_proxy_config_tracker_impl.h",
stevenjbb237e2ae2015-07-02 22:02:1111 "proxy_config_dictionary.cc",
12 "proxy_config_dictionary.h",
13 "proxy_config_export.h",
abhishek.a2171c612852015-08-31 10:48:1914 "proxy_config_pref_names.h",
stevenjbb237e2ae2015-07-02 22:02:1115 "proxy_prefs.cc",
16 "proxy_prefs.h",
17 ]
18
19 defines = [ "PROXY_CONFIG_IMPLEMENTATION" ]
20
21 deps = [
22 "//base",
Jinyoung Hur4dc59212021-08-18 16:49:4823 "//components/policy:generated",
24 "//components/policy/core/browser",
25 "//components/policy/core/common",
brettw9f7802a22016-01-30 06:40:1726 "//components/prefs",
Jinyoung Hur4dc59212021-08-18 16:49:4827 "//components/strings",
stevenjb83368882015-07-10 20:51:4528 "//net",
abhishek.a2171c612852015-08-31 10:48:1929 "//url",
stevenjbb237e2ae2015-07-02 22:02:1130 ]
brettw15764b12015-11-30 22:11:0531
Alison Galeb8be9522024-04-16 00:00:3132 # TODO(crbug.com/40446749): Break a header include cycle on ChromeOS
brettw15764b12015-11-30 22:11:0533 # and disable include checking so GN doesn't complain about the missing
34 # dependency (it still links OK). This cycle should be fixed and header
35 # checking enabled.
Maksim Sisov1d46b6602024-12-18 09:27:0036 if (is_chromeos) {
brettw15764b12015-11-30 22:11:0537 check_includes = false
38 } else {
39 deps += [ "//components/pref_registry" ]
40 }
Yann Dago44d6cc322022-07-13 17:46:2541
42 if (!is_ios) {
43 sources += [
44 "proxy_policy_handler.cc",
45 "proxy_policy_handler.h",
46 ]
47 }
stevenjbb237e2ae2015-07-02 22:02:1148}
Brett Wilson817fec02015-08-22 20:36:4949
50source_set("unit_tests") {
51 testonly = true
52 sources = [
abhishek.a2131c6dc32015-09-17 07:10:4353 "pref_proxy_config_tracker_impl_unittest.cc",
Brett Wilson817fec02015-08-22 20:36:4954 "proxy_config_dictionary_unittest.cc",
55 "proxy_prefs_unittest.cc",
56 ]
57 deps = [
58 ":proxy_config",
brettw15764b12015-11-30 22:11:0559 "//base",
brettw15764b12015-11-30 22:11:0560 "//base/test:test_support",
Jinyoung Hur4dc59212021-08-18 16:49:4861 "//components/policy:generated",
62 "//components/policy/core/browser",
63 "//components/policy/core/browser:test_support",
64 "//components/policy/core/common",
brettw9f7802a22016-01-30 06:40:1765 "//components/prefs:test_support",
brettw15764b12015-11-30 22:11:0566 "//net",
Ramin Halavatica8d5252018-03-12 05:33:4967 "//net:test_support",
abhishek.a2131c6dc32015-09-17 07:10:4368 "//testing/gmock",
Brett Wilson817fec02015-08-22 20:36:4969 "//testing/gtest",
Jinyoung Hur4dc59212021-08-18 16:49:4870 "//third_party/abseil-cpp:absl",
Brett Wilson817fec02015-08-22 20:36:4971 ]
Yann Dago44d6cc322022-07-13 17:46:2572
73 if (!is_ios) {
74 sources += [ "proxy_policy_handler_unittest.cc" ]
75 }
Brett Wilson817fec02015-08-22 20:36:4976}