blob: 79cd4d7843ee00a220f65c917381662f0d46142c [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2021 The Chromium Authors
Roger Tawac0a1b9c2021-09-23 23:34:042# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5static_library("winhttp") {
6 friend = [ ":unit_tests" ]
7
8 public = [
9 "network_fetcher.h",
10 "proxy_configuration.h",
11 "proxy_info.h",
12 "scoped_hinternet.h",
13 ]
14
15 sources = [
16 "net_util.cc",
17 "net_util.h",
18 "network_fetcher.cc",
19 "proxy_configuration.cc",
20 "proxy_info.cc",
21 "scoped_hinternet.cc",
22 "scoped_winttp_proxy_info.h",
23 ]
24
25 public_deps = [
26 "//base",
27 "//third_party/abseil-cpp:absl",
28 "//url",
29 ]
30
31 defines = [ "SECURITY_WIN32" ]
32
33 libs = [ "winhttp.lib" ]
34}
35
36source_set("unit_tests") {
37 testonly = true
38 sources = [
39 "net_util_unittest.cc",
Sorin Jianuc03eade2021-10-18 22:57:3240 "network_fetcher_unittest.cc",
Roger Tawac0a1b9c2021-09-23 23:34:0441 "proxy_configuration_unittest.cc",
42 "proxy_info_unittest.cc",
43 ]
44
45 deps = [
46 ":winhttp",
47 "//base",
48 "//base/test:test_support",
S. Ganesh4fd82dd82024-08-22 17:50:1849 "//net:test_support",
Roger Tawac0a1b9c2021-09-23 23:34:0450 "//testing/gtest",
S. Ganesh4fd82dd82024-08-22 17:50:1851 "//third_party/zlib/google:compression_utils",
Roger Tawac0a1b9c2021-09-23 23:34:0452 ]
53}