| OLD | NEW |
| 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../../webrtc.gni") | 9 import("../../webrtc.gni") |
| 10 import("//third_party/protobuf/proto_library.gni") | 10 import("//third_party/protobuf/proto_library.gni") |
| 11 | 11 |
| 12 if (rtc_enable_protobuf) { | 12 if (rtc_enable_protobuf) { |
| 13 proto_library("network_tester_config_proto") { | 13 proto_library("network_tester_config_proto") { |
| 14 sources = [ | 14 sources = [ |
| 15 "network_tester_config.proto", | 15 "network_tester_config.proto", |
| 16 ] | 16 ] |
| 17 proto_out_dir = "webrtc/tools/network_tester" | 17 proto_out_dir = "webrtc/rtc_tools/network_tester" |
| 18 } | 18 } |
| 19 | 19 |
| 20 proto_library("network_tester_packet_proto") { | 20 proto_library("network_tester_packet_proto") { |
| 21 sources = [ | 21 sources = [ |
| 22 "network_tester_packet.proto", | 22 "network_tester_packet.proto", |
| 23 ] | 23 ] |
| 24 proto_out_dir = "webrtc/tools/network_tester" | 24 proto_out_dir = "webrtc/rtc_tools/network_tester" |
| 25 } | 25 } |
| 26 | 26 |
| 27 rtc_static_library("network_tester") { | 27 rtc_static_library("network_tester") { |
| 28 sources = [ | 28 sources = [ |
| 29 "config_reader.cc", | 29 "config_reader.cc", |
| 30 "config_reader.h", | 30 "config_reader.h", |
| 31 "packet_logger.cc", | 31 "packet_logger.cc", |
| 32 "packet_logger.h", | 32 "packet_logger.h", |
| 33 "packet_sender.cc", | 33 "packet_sender.cc", |
| 34 "packet_sender.h", | 34 "packet_sender.h", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 } | 69 } |
| 70 | 70 |
| 71 rtc_source_set("network_tester_unittests") { | 71 rtc_source_set("network_tester_unittests") { |
| 72 testonly = true | 72 testonly = true |
| 73 | 73 |
| 74 # Skip restricting visibility on mobile platforms since the tests on those | 74 # Skip restricting visibility on mobile platforms since the tests on those |
| 75 # gets additional generated targets which would require many lines here to | 75 # gets additional generated targets which would require many lines here to |
| 76 # cover (which would be confusing to read and hard to maintain). | 76 # cover (which would be confusing to read and hard to maintain). |
| 77 if (!is_android && !is_ios) { | 77 if (!is_android && !is_ios) { |
| 78 visibility = [ "//webrtc/tools:tools_unittests" ] | 78 visibility = [ "//webrtc/rtc_tools:tools_unittests" ] |
| 79 } | 79 } |
| 80 sources = [ | 80 sources = [ |
| 81 "network_tester_unittest.cc", | 81 "network_tester_unittest.cc", |
| 82 ] | 82 ] |
| 83 | 83 |
| 84 deps = [ | 84 deps = [ |
| 85 ":network_tester", | 85 ":network_tester", |
| 86 "//testing/gtest", | 86 "//testing/gtest", |
| 87 "//webrtc/base:rtc_base_tests_utils", | 87 "//webrtc/base:rtc_base_tests_utils", |
| 88 "//webrtc/test:test_support", | 88 "//webrtc/test:test_support", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 apk_name = "NetworkTesterMobile" | 127 apk_name = "NetworkTesterMobile" |
| 128 android_manifest = "androidapp/AndroidManifest.xml" | 128 android_manifest = "androidapp/AndroidManifest.xml" |
| 129 | 129 |
| 130 deps = [ | 130 deps = [ |
| 131 ":NetworkTesterMobile_javalib", | 131 ":NetworkTesterMobile_javalib", |
| 132 ":NetworkTesterMobile_resources", | 132 ":NetworkTesterMobile_resources", |
| 133 "//base:base_java", | 133 "//base:base_java", |
| 134 "//webrtc/rtc_base:base_java", | 134 "//webrtc/rtc_base:base_java", |
| 135 ] | 135 ] |
| 136 | 136 |
| 137 shared_libraries = [ "//webrtc/tools/network_tester:network_tester_so" ] | 137 shared_libraries = [ "//webrtc/rtc_tools/network_tester:network_tester_so" ] |
| 138 } | 138 } |
| 139 | 139 |
| 140 android_library("NetworkTesterMobile_javalib") { | 140 android_library("NetworkTesterMobile_javalib") { |
| 141 testonly = true | 141 testonly = true |
| 142 android_manifest = "androidapp/AndroidManifest.xml" | 142 android_manifest = "androidapp/AndroidManifest.xml" |
| 143 | 143 |
| 144 java_files = [ | 144 java_files = [ |
| 145 "androidapp/src/com/google/media/networktester/MainActivity.java", | 145 "androidapp/src/com/google/media/networktester/MainActivity.java", |
| 146 "androidapp/src/com/google/media/networktester/NetworkTester.java", | 146 "androidapp/src/com/google/media/networktester/NetworkTester.java", |
| 147 ] | 147 ] |
| (...skipping 19 matching lines...) Expand all Loading... |
| 167 ":network_tester", | 167 ":network_tester", |
| 168 "../../system_wrappers:field_trial_default", | 168 "../../system_wrappers:field_trial_default", |
| 169 ] | 169 ] |
| 170 | 170 |
| 171 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] | 171 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
| 172 configs += [ "//build/config/android:hide_all_but_jni" ] | 172 configs += [ "//build/config/android:hide_all_but_jni" ] |
| 173 | 173 |
| 174 output_extension = "so" | 174 output_extension = "so" |
| 175 } | 175 } |
| 176 } | 176 } |
| OLD | NEW |