summaryrefslogtreecommitdiff
path: root/chromium/components/winhttp/BUILD.gn
blob: 29b98aa22ae024b2c6186a74a2953d4414386a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

static_library("winhttp") {
  friend = [ ":unit_tests" ]

  public = [
    "network_fetcher.h",
    "proxy_configuration.h",
    "proxy_info.h",
    "scoped_hinternet.h",
  ]

  sources = [
    "net_util.cc",
    "net_util.h",
    "network_fetcher.cc",
    "proxy_configuration.cc",
    "proxy_info.cc",
    "scoped_hinternet.cc",
    "scoped_winttp_proxy_info.h",
  ]

  public_deps = [
    "//base",
    "//third_party/abseil-cpp:absl",
    "//url",
  ]

  defines = [ "SECURITY_WIN32" ]

  libs = [ "winhttp.lib" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "net_util_unittest.cc",
    "network_fetcher_unittest.cc",
    "proxy_configuration_unittest.cc",
    "proxy_info_unittest.cc",
  ]

  deps = [
    ":winhttp",
    "//base",
    "//base/test:test_support",
    "//testing/gtest",
  ]
}