[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 1 | # 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 | |
| 5 | component("captive_portal") { |
| 6 | sources = [ |
| 7 | "captive_portal_detector.cc", |
| 8 | "captive_portal_detector.h", |
satorux | ea51ccc | 2015-02-16 10:14:24 | [diff] [blame] | 9 | "captive_portal_export.h", |
Mike Dougherty | 10d81eea | 2017-08-18 21:07:37 | [diff] [blame] | 10 | "captive_portal_metrics.cc", |
| 11 | "captive_portal_metrics.h", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 12 | "captive_portal_types.cc", |
| 13 | "captive_portal_types.h", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 14 | ] |
| 15 | |
| 16 | defines = [ "CAPTIVE_PORTAL_IMPLEMENTATION" ] |
| 17 | |
| 18 | deps = [ |
| 19 | "//base", |
rajendrant | a81c185f | 2017-01-24 21:13:44 | [diff] [blame] | 20 | "//components/data_use_measurement/core", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 21 | "//net", |
John Abd-El-Malek | 6011b67 | 2018-02-16 03:23:56 | [diff] [blame^] | 22 | "//services/network/public/cpp", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 23 | "//url", |
| 24 | ] |
| 25 | } |
| 26 | |
brettw | 7761761 | 2016-07-13 22:40:06 | [diff] [blame] | 27 | static_library("test_support") { |
Brett Wilson | 0c8745a | 2014-09-08 22:59:49 | [diff] [blame] | 28 | testonly = true |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 29 | sources = [ |
| 30 | "captive_portal_testing_utils.cc", |
| 31 | "captive_portal_testing_utils.h", |
| 32 | ] |
| 33 | |
| 34 | deps = [ |
| 35 | ":captive_portal", |
| 36 | "//base", |
brettw | 462851f7 | 2014-11-26 18:38:55 | [diff] [blame] | 37 | "//net:test_support", |
John Abd-El-Malek | 6011b67 | 2018-02-16 03:23:56 | [diff] [blame^] | 38 | "//services/network:test_support", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 39 | "//url", |
| 40 | ] |
| 41 | } |
[email protected] | a439c14 | 2014-07-21 17:24:48 | [diff] [blame] | 42 | |
| 43 | source_set("unit_tests") { |
Brett Wilson | 0c8745a | 2014-09-08 22:59:49 | [diff] [blame] | 44 | testonly = true |
[email protected] | a439c14 | 2014-07-21 17:24:48 | [diff] [blame] | 45 | sources = [ |
| 46 | "captive_portal_detector_unittest.cc", |
| 47 | ] |
| 48 | |
| 49 | deps = [ |
| 50 | ":captive_portal", |
brettw | 462851f7 | 2014-11-26 18:38:55 | [diff] [blame] | 51 | ":test_support", |
| 52 | "//base", |
| 53 | "//net:test_support", |
[email protected] | a439c14 | 2014-07-21 17:24:48 | [diff] [blame] | 54 | "//testing/gtest", |
| 55 | ] |
| 56 | } |