summaryrefslogtreecommitdiff
path: root/chromium/net/dns/public/BUILD.gn
blob: 832312ddeee5d4aa2209eced310bc12ea4b92a5a (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
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

source_set("public") {
  # Due to circular dependencies, should only be depended on through //net.
  # Limit visibility to //net and other source_sets with the same access
  # restriction.
  visibility = [
    "//net",
    "//net/dns:dns_client",
    "//net/dns:host_resolver",
    "//net/dns:host_resolver_manager",
  ]

  sources = [
    "dns_over_https_server_config.cc",
    "dns_over_https_server_config.h",
    "dns_protocol.h",
    "dns_query_type.cc",
    "dns_query_type.h",
    "doh_provider_entry.cc",
    "doh_provider_entry.h",
    "resolve_error_info.cc",
    "resolve_error_info.h",
    "util.cc",
    "util.h",
  ]

  deps = [ "//net:net_deps" ]

  public_deps = [ "//net:net_public_deps" ]
}

source_set("tests") {
  testonly = true
  sources = [
    "doh_provider_entry_unittest.cc",
    "util_unittest.cc",
  ]

  deps = [
    "//net",
    "//testing/gtest",
  ]
}