1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/test.gni")
source_set("net") {
sources = [
"connectivity_checker.cc",
"connectivity_checker.h",
"connectivity_checker_impl.cc",
"connectivity_checker_impl.h",
"fake_connectivity_checker.cc",
"fake_connectivity_checker.h",
"net_switches.cc",
"net_switches.h",
"net_util_cast.cc",
"net_util_cast.h",
]
if (!is_android) {
sources += [
"network_change_notifier_factory_cast.cc",
"network_change_notifier_factory_cast.h",
]
}
deps = [
"//base",
"//chromecast:chromecast_features",
"//chromecast/base:cast_sys_info",
"//chromecast/base/metrics",
"//chromecast/public",
"//components/proxy_config",
"//net",
]
}
source_set("test_support") {
testonly = true
sources = [
"fake_stream_socket.cc",
"fake_stream_socket.h",
"mock_stream_socket.cc",
"mock_stream_socket.h",
]
public_deps = [
"//testing/gmock",
]
deps = [
"//base",
"//net",
]
}
test("cast_net_unittests") {
sources = [
"fake_stream_socket_unittest.cc",
]
deps = [
":test_support",
"//base",
"//base/test:run_all_unittests",
"//net",
"//testing/gtest",
]
}
|