BUILD.gn 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. assert(is_win)
  5. component("proxy_resolver_win") {
  6. sources = [
  7. "windows_system_proxy_resolver_impl.cc",
  8. "windows_system_proxy_resolver_impl.h",
  9. "winhttp_api_wrapper.h",
  10. "winhttp_api_wrapper_impl.cc",
  11. "winhttp_api_wrapper_impl.h",
  12. "winhttp_proxy_resolver_functions.cc",
  13. "winhttp_proxy_resolver_functions.h",
  14. ]
  15. libs = [ "winhttp.lib" ]
  16. deps = [
  17. "//base",
  18. "//mojo/public/cpp/bindings",
  19. "//url",
  20. ]
  21. public_deps = [
  22. "//net",
  23. "//services/proxy_resolver_win/public/mojom",
  24. ]
  25. defines = [ "IS_PROXY_RESOLVER_WIN_IMPL" ]
  26. }
  27. source_set("tests") {
  28. testonly = true
  29. sources = [ "windows_system_proxy_resolver_impl_unittest.cc" ]
  30. deps = [
  31. ":proxy_resolver_win",
  32. "//base",
  33. "//base/test:test_support",
  34. "//net:test_support",
  35. "//services/proxy_resolver_win/public/mojom",
  36. "//testing/gmock",
  37. "//testing/gtest",
  38. ]
  39. }