[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", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 20 | "//net", |
John Abd-El-Malek | 6011b67 | 2018-02-16 03:23:56 | [diff] [blame] | 21 | "//services/network/public/cpp", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 22 | "//url", |
| 23 | ] |
Matthew Wang | 05a0fb9 | 2019-07-25 22:37:09 | [diff] [blame] | 24 | |
| 25 | if (is_chromeos) { |
| 26 | deps += [ "//chromeos/network" ] |
| 27 | } |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 28 | } |
| 29 | |
brettw | 7761761 | 2016-07-13 22:40:06 | [diff] [blame] | 30 | static_library("test_support") { |
Brett Wilson | 0c8745a | 2014-09-08 22:59:49 | [diff] [blame] | 31 | testonly = true |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 32 | sources = [ |
| 33 | "captive_portal_testing_utils.cc", |
| 34 | "captive_portal_testing_utils.h", |
| 35 | ] |
| 36 | |
| 37 | deps = [ |
| 38 | ":captive_portal", |
| 39 | "//base", |
brettw | 462851f7 | 2014-11-26 18:38:55 | [diff] [blame] | 40 | "//net:test_support", |
John Abd-El-Malek | 6011b67 | 2018-02-16 03:23:56 | [diff] [blame] | 41 | "//services/network:test_support", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 42 | "//url", |
| 43 | ] |
| 44 | } |
[email protected] | a439c14 | 2014-07-21 17:24:48 | [diff] [blame] | 45 | |
| 46 | source_set("unit_tests") { |
Brett Wilson | 0c8745a | 2014-09-08 22:59:49 | [diff] [blame] | 47 | testonly = true |
[email protected] | a439c14 | 2014-07-21 17:24:48 | [diff] [blame] | 48 | sources = [ |
| 49 | "captive_portal_detector_unittest.cc", |
| 50 | ] |
| 51 | |
| 52 | deps = [ |
| 53 | ":captive_portal", |
brettw | 462851f7 | 2014-11-26 18:38:55 | [diff] [blame] | 54 | ":test_support", |
| 55 | "//base", |
| 56 | "//net:test_support", |
[email protected] | a439c14 | 2014-07-21 17:24:48 | [diff] [blame] | 57 | "//testing/gtest", |
| 58 | ] |
| 59 | } |