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") |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bundle_data("network_tester_unittests_bundle_data") { | 61 bundle_data("network_tester_unittests_bundle_data") { |
62 testonly = true | 62 testonly = true |
63 sources = network_tester_unittests_resources | 63 sources = network_tester_unittests_resources |
64 outputs = [ | 64 outputs = [ |
65 "{{bundle_resources_dir}}/{{source_file_part}}", | 65 "{{bundle_resources_dir}}/{{source_file_part}}", |
66 ] | 66 ] |
67 } | 67 } |
68 } | 68 } |
69 | 69 |
70 rtc_source_set("network_tester_unittests") { | 70 rtc_source_set("network_tester_unittests") { |
| 71 testonly = true |
| 72 |
| 73 # Skip restricting visibility on mobile platforms since the tests on those |
| 74 # gets additional generated targets which would require many lines here to |
| 75 # cover (which would be confusing to read and hard to maintain). |
| 76 if (!is_android && !is_ios) { |
| 77 visibility = [ "//webrtc/tools:tools_unittests" ] |
| 78 } |
71 sources = [ | 79 sources = [ |
72 "network_tester_unittest.cc", | 80 "network_tester_unittest.cc", |
73 ] | 81 ] |
74 | 82 |
75 testonly = true | |
76 deps = [ | 83 deps = [ |
77 ":network_tester", | 84 ":network_tester", |
78 "//testing/gtest", | 85 "//testing/gtest", |
79 "//webrtc/base:rtc_base_tests_utils", | 86 "//webrtc/base:rtc_base_tests_utils", |
80 "//webrtc/test:test_support", | 87 "//webrtc/test:test_support", |
81 ] | 88 ] |
82 | 89 |
83 if (is_ios) { | 90 if (is_ios) { |
84 deps += [ ":network_tester_unittests_bundle_data" ] | 91 deps += [ ":network_tester_unittests_bundle_data" ] |
85 } | 92 } |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 ":network_tester", | 166 ":network_tester", |
160 "../../system_wrappers:field_trial_default", | 167 "../../system_wrappers:field_trial_default", |
161 ] | 168 ] |
162 | 169 |
163 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] | 170 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
164 configs += [ "//build/config/android:hide_all_but_jni" ] | 171 configs += [ "//build/config/android:hide_all_but_jni" ] |
165 | 172 |
166 output_extension = "so" | 173 output_extension = "so" |
167 } | 174 } |
168 } | 175 } |
OLD | NEW |