Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | # Copyright 2021 The Chromium Authors |
Roger Tawa | c0a1b9c | 2021-09-23 23:34:04 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | static_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 | |
| 36 | source_set("unit_tests") { |
| 37 | testonly = true |
| 38 | sources = [ |
| 39 | "net_util_unittest.cc", |
Sorin Jianu | c03eade | 2021-10-18 22:57:32 | [diff] [blame] | 40 | "network_fetcher_unittest.cc", |
Roger Tawa | c0a1b9c | 2021-09-23 23:34:04 | [diff] [blame] | 41 | "proxy_configuration_unittest.cc", |
| 42 | "proxy_info_unittest.cc", |
| 43 | ] |
| 44 | |
| 45 | deps = [ |
| 46 | ":winhttp", |
| 47 | "//base", |
| 48 | "//base/test:test_support", |
S. Ganesh | 4fd82dd8 | 2024-08-22 17:50:18 | [diff] [blame] | 49 | "//net:test_support", |
Roger Tawa | c0a1b9c | 2021-09-23 23:34:04 | [diff] [blame] | 50 | "//testing/gtest", |
S. Ganesh | 4fd82dd8 | 2024-08-22 17:50:18 | [diff] [blame] | 51 | "//third_party/zlib/google:compression_utils", |
Roger Tawa | c0a1b9c | 2021-09-23 23:34:04 | [diff] [blame] | 52 | ] |
| 53 | } |