summaryrefslogtreecommitdiffstats
path: root/components/captive_portal/BUILD.gn
blob: 3d77291c6978a028851b8d20d6a57a026c2f99ae (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 2014 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.

component("captive_portal") {
  sources = [
    "captive_portal_detector.cc",
    "captive_portal_detector.h",
    "captive_portal_export.h",
    "captive_portal_types.cc",
    "captive_portal_types.h",
  ]

  defines = [ "CAPTIVE_PORTAL_IMPLEMENTATION" ]

  deps = [
    "//base",
    "//net",
    "//url",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "captive_portal_testing_utils.cc",
    "captive_portal_testing_utils.h",
  ]

  deps = [
    ":captive_portal",
    "//base",
    "//net:test_support",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "captive_portal_detector_unittest.cc",
  ]

  deps = [
    ":captive_portal",
    ":test_support",
    "//base",
    "//net:test_support",
    "//testing/gtest",
  ]
}