blob: 93a263cb7ec121c22e051cb46a09ac643a1a6ecb [file] [log] [blame]
[email protected]b9f4c682014-07-10 22:00:371# Copyright 2014 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
5component("captive_portal") {
6 sources = [
7 "captive_portal_detector.cc",
8 "captive_portal_detector.h",
satoruxea51ccc2015-02-16 10:14:249 "captive_portal_export.h",
Mike Dougherty10d81eea2017-08-18 21:07:3710 "captive_portal_metrics.cc",
11 "captive_portal_metrics.h",
[email protected]b9f4c682014-07-10 22:00:3712 "captive_portal_types.cc",
13 "captive_portal_types.h",
[email protected]b9f4c682014-07-10 22:00:3714 ]
15
16 defines = [ "CAPTIVE_PORTAL_IMPLEMENTATION" ]
17
18 deps = [
19 "//base",
[email protected]b9f4c682014-07-10 22:00:3720 "//net",
John Abd-El-Malek6011b672018-02-16 03:23:5621 "//services/network/public/cpp",
[email protected]b9f4c682014-07-10 22:00:3722 "//url",
23 ]
Matthew Wang05a0fb92019-07-25 22:37:0924
25 if (is_chromeos) {
26 deps += [ "//chromeos/network" ]
27 }
[email protected]b9f4c682014-07-10 22:00:3728}
29
brettw77617612016-07-13 22:40:0630static_library("test_support") {
Brett Wilson0c8745a2014-09-08 22:59:4931 testonly = true
[email protected]b9f4c682014-07-10 22:00:3732 sources = [
33 "captive_portal_testing_utils.cc",
34 "captive_portal_testing_utils.h",
35 ]
36
37 deps = [
38 ":captive_portal",
39 "//base",
brettw462851f72014-11-26 18:38:5540 "//net:test_support",
John Abd-El-Malek6011b672018-02-16 03:23:5641 "//services/network:test_support",
[email protected]b9f4c682014-07-10 22:00:3742 "//url",
43 ]
44}
[email protected]a439c142014-07-21 17:24:4845
46source_set("unit_tests") {
Brett Wilson0c8745a2014-09-08 22:59:4947 testonly = true
[email protected]a439c142014-07-21 17:24:4848 sources = [
49 "captive_portal_detector_unittest.cc",
50 ]
51
52 deps = [
53 ":captive_portal",
brettw462851f72014-11-26 18:38:5554 ":test_support",
55 "//base",
56 "//net:test_support",
[email protected]a439c142014-07-21 17:24:4857 "//testing/gtest",
58 ]
59}