OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
2 # | |
3 # Use of this source code is governed by a BSD-style license | |
4 # that can be found in the LICENSE file in the root of the source | |
5 # tree. An additional intellectual property rights grant can be found | |
6 # in the file PATENTS. All contributing project authors may | |
7 # be found in the AUTHORS file in the root of the source tree. | |
8 | |
9 import("../../webrtc.gni") | |
10 import("//third_party/protobuf/proto_library.gni") | |
11 | |
12 if (rtc_enable_protobuf) { | |
13 proto_library("network_tester_config_proto") { | |
14 sources = [ | |
15 "network_tester_config.proto", | |
16 ] | |
17 proto_out_dir = "webrtc/tools/network_tester" | |
18 } | |
19 | |
20 proto_library("network_tester_packet_proto") { | |
21 sources = [ | |
22 "network_tester_packet.proto", | |
terelius
2017/03/30 09:31:23
Are the proto files added in another CL?
michaelt
2017/03/30 09:52:40
I just missed to add them :)
| |
23 ] | |
24 proto_out_dir = "webrtc/tools/network_tester" | |
25 } | |
26 } | |
27 | |
28 rtc_static_library("network_tester") { | |
29 sources = [ | |
30 "config_reader.cc", | |
31 "config_reader.h", | |
32 "packet_sender.cc", | |
33 "packet_sender.h", | |
34 "test_controller.cc", | |
35 "test_controller.h", | |
36 ] | |
37 | |
38 defines = [ "WEBRTC_NETWORK_TESTER_PROTO" ] | |
39 | |
40 deps = [ | |
41 ":network_tester_config_proto", | |
42 ":network_tester_packet_proto", | |
43 "../../base:rtc_task_queue", | |
44 "../../p2p", | |
45 ] | |
46 | |
47 if (!build_with_chromium && is_clang) { | |
48 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
49 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
50 } | |
51 } | |
52 | |
53 network_tester_unittests_resources = [ | |
54 "//resources/network_tester/client_config.dat", | |
55 "//resources/network_tester/server_config.dat", | |
56 ] | |
57 | |
58 rtc_source_set("network_tester_unittests") { | |
59 sources = [ | |
60 "network_tester_unittest.cc", | |
61 ] | |
62 | |
63 testonly = true | |
64 deps = [ | |
65 ":network_tester", | |
66 "//testing/gtest", | |
67 ] | |
68 | |
69 defines = [ "GTEST_RELATIVE_PATH" ] | |
70 | |
71 data = network_tester_unittests_resources | |
72 | |
73 if (!build_with_chromium && is_clang) { | |
74 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
75 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
76 } | |
77 } | |
OLD | NEW |