Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: webrtc/tools/network_tester/BUILD.gn

Issue 2779233002: Add first part of the network_tester functionality. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/tools/network_tester/BUILD.gn
diff --git a/webrtc/tools/network_tester/BUILD.gn b/webrtc/tools/network_tester/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..1fbda89558b2bc2191a8a6579eeb9062f6b71769
--- /dev/null
+++ b/webrtc/tools/network_tester/BUILD.gn
@@ -0,0 +1,77 @@
+# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+import("../../webrtc.gni")
+import("//third_party/protobuf/proto_library.gni")
+
+if (rtc_enable_protobuf) {
+ proto_library("network_tester_config_proto") {
+ sources = [
+ "network_tester_config.proto",
+ ]
+ proto_out_dir = "webrtc/tools/network_tester"
+ }
+
+ proto_library("network_tester_packet_proto") {
+ sources = [
+ "network_tester_packet.proto",
+ ]
+ proto_out_dir = "webrtc/tools/network_tester"
+ }
+}
+
+rtc_static_library("network_tester") {
+ sources = [
+ "config_reader.cc",
+ "config_reader.h",
+ "packet_sender.cc",
+ "packet_sender.h",
+ "test_controller.cc",
+ "test_controller.h",
+ ]
+
+ defines = [ "WEBRTC_NETWORK_TESTER_PROTO" ]
+
+ deps = [
+ ":network_tester_config_proto",
+ ":network_tester_packet_proto",
+ "../../base:rtc_task_queue",
+ "../../p2p",
+ ]
+
+ if (!build_with_chromium && is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+}
+
+network_tester_unittests_resources = [
+ "//resources/network_tester/client_config.dat",
+ "//resources/network_tester/server_config.dat",
+]
+
+rtc_source_set("network_tester_unittests") {
+ sources = [
+ "network_tester_unittest.cc",
+ ]
+
+ testonly = true
+ deps = [
+ ":network_tester",
+ "//testing/gtest",
+ ]
+
+ defines = [ "GTEST_RELATIVE_PATH" ]
+
+ data = network_tester_unittests_resources
+
+ if (!build_with_chromium && is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698