blob: b64c9b0b3b4ac5273ac4641e5706040e6e68d356 [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",
rajendranta81c185f2017-01-24 21:13:4420 "//components/data_use_measurement/core",
[email protected]b9f4c682014-07-10 22:00:3721 "//net",
John Abd-El-Malek6011b672018-02-16 03:23:5622 "//services/network/public/cpp",
[email protected]b9f4c682014-07-10 22:00:3723 "//url",
24 ]
25}
26
brettw77617612016-07-13 22:40:0627static_library("test_support") {
Brett Wilson0c8745a2014-09-08 22:59:4928 testonly = true
[email protected]b9f4c682014-07-10 22:00:3729 sources = [
30 "captive_portal_testing_utils.cc",
31 "captive_portal_testing_utils.h",
32 ]
33
34 deps = [
35 ":captive_portal",
36 "//base",
brettw462851f72014-11-26 18:38:5537 "//net:test_support",
John Abd-El-Malek6011b672018-02-16 03:23:5638 "//services/network:test_support",
[email protected]b9f4c682014-07-10 22:00:3739 "//url",
40 ]
41}
[email protected]a439c142014-07-21 17:24:4842
43source_set("unit_tests") {
Brett Wilson0c8745a2014-09-08 22:59:4944 testonly = true
[email protected]a439c142014-07-21 17:24:4845 sources = [
46 "captive_portal_detector_unittest.cc",
47 ]
48
49 deps = [
50 ":captive_portal",
brettw462851f72014-11-26 18:38:5551 ":test_support",
52 "//base",
53 "//net:test_support",
[email protected]a439c142014-07-21 17:24:4854 "//testing/gtest",
55 ]
56}