blob: 3d77291c6978a028851b8d20d6a57a026c2f99ae [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",
[email protected]b9f4c682014-07-10 22:00:3710 "captive_portal_types.cc",
11 "captive_portal_types.h",
[email protected]b9f4c682014-07-10 22:00:3712 ]
13
14 defines = [ "CAPTIVE_PORTAL_IMPLEMENTATION" ]
15
16 deps = [
17 "//base",
18 "//net",
19 "//url",
20 ]
21}
22
brettw462851f72014-11-26 18:38:5523source_set("test_support") {
Brett Wilson0c8745a2014-09-08 22:59:4924 testonly = true
[email protected]b9f4c682014-07-10 22:00:3725 sources = [
26 "captive_portal_testing_utils.cc",
27 "captive_portal_testing_utils.h",
28 ]
29
30 deps = [
31 ":captive_portal",
32 "//base",
brettw462851f72014-11-26 18:38:5533 "//net:test_support",
[email protected]b9f4c682014-07-10 22:00:3734 "//url",
35 ]
36}
[email protected]a439c142014-07-21 17:24:4837
38source_set("unit_tests") {
Brett Wilson0c8745a2014-09-08 22:59:4939 testonly = true
[email protected]a439c142014-07-21 17:24:4840 sources = [
41 "captive_portal_detector_unittest.cc",
42 ]
43
44 deps = [
45 ":captive_portal",
brettw462851f72014-11-26 18:38:5546 ":test_support",
47 "//base",
48 "//net:test_support",
[email protected]a439c142014-07-21 17:24:4849 "//testing/gtest",
50 ]
51}