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
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 2020 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("openscreen_platform") {
sources = [
"logging.cc",
"network_util.cc",
"network_util.h",
"task_runner.cc",
"task_runner.h",
"time.cc",
"trace_logging_platform.cc",
]
public_deps = [ "//third_party/openscreen/src/platform" ]
deps = [
"//base",
"//net",
]
}
# //net-based implementation of UdpSocket.
# Incompatible with ":openscreen_platform_network_service".
source_set("openscreen_platform_net") {
testonly = true
sources = [
"net_udp_socket.cc",
"net_udp_socket.h",
]
public_deps = [ ":openscreen_platform" ]
deps = [
"//base",
"//net",
]
}
# Network service-based implementation of Open Screen platform.
# Incompatible with ":openscreen_platform_net".
source_set("openscreen_platform_network_service") {
sources = [
"network_context.cc",
"network_context.h",
"tls_client_connection.cc",
"tls_client_connection.h",
"tls_connection_factory.cc",
"tls_connection_factory.h",
"udp_socket.cc",
"udp_socket.h",
]
public_deps = [
":openscreen_platform",
"//mojo/public/cpp/bindings",
"//services/network/public/mojom",
]
deps = [
"//base",
"//services/network:network_service",
]
}
source_set("unittests") {
testonly = true
sources = [
"tls_client_connection_unittest.cc",
"tls_connection_factory_unittest.cc",
]
deps = [
":openscreen_platform_network_service",
"//base/test:test_support",
"//services/network:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
|