OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 "client/basicportallocator.h", | 80 "client/basicportallocator.h", |
81 "client/socketmonitor.cc", | 81 "client/socketmonitor.cc", |
82 "client/socketmonitor.h", | 82 "client/socketmonitor.h", |
83 ] | 83 ] |
84 | 84 |
85 defines = [] | 85 defines = [] |
86 | 86 |
87 deps = [ | 87 deps = [ |
88 "../api:libjingle_peerconnection_api", | 88 "../api:libjingle_peerconnection_api", |
89 "../api:ortc_api", | 89 "../api:ortc_api", |
90 "../rtc_base:rtc_base", | 90 "../base:rtc_base", |
91 "../system_wrappers:field_trial_api", | 91 "../system_wrappers:field_trial_api", |
92 ] | 92 ] |
93 | 93 |
94 public_configs = [ ":rtc_p2p_inherited_config" ] | 94 public_configs = [ ":rtc_p2p_inherited_config" ] |
95 | 95 |
96 if (build_with_chromium) { | 96 if (build_with_chromium) { |
97 if (is_nacl) { | 97 if (is_nacl) { |
98 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 98 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
99 } | 99 } |
100 } else { | 100 } else { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 "base/fakeportallocator.h", | 148 "base/fakeportallocator.h", |
149 "base/faketransportcontroller.h", | 149 "base/faketransportcontroller.h", |
150 "base/mockicetransport.h", | 150 "base/mockicetransport.h", |
151 "base/testrelayserver.h", | 151 "base/testrelayserver.h", |
152 "base/teststunserver.h", | 152 "base/teststunserver.h", |
153 "base/testturnserver.h", | 153 "base/testturnserver.h", |
154 ] | 154 ] |
155 deps = [ | 155 deps = [ |
156 ":rtc_p2p", | 156 ":rtc_p2p", |
157 "../api:ortc_api", | 157 "../api:ortc_api", |
158 "../rtc_base:rtc_base", | 158 "../base:rtc_base", |
159 "../rtc_base:rtc_base_approved", | 159 "../base:rtc_base_approved", |
160 "../rtc_base:rtc_base_tests_utils", | 160 "../base:rtc_base_tests_utils", |
161 "../test:test_support", | 161 "../test:test_support", |
162 "//testing/gmock", | 162 "//testing/gmock", |
163 ] | 163 ] |
164 } | 164 } |
165 | 165 |
166 rtc_source_set("rtc_p2p_unittests") { | 166 rtc_source_set("rtc_p2p_unittests") { |
167 testonly = true | 167 testonly = true |
168 | 168 |
169 # Skip restricting visibility on mobile platforms since the tests on those | 169 # Skip restricting visibility on mobile platforms since the tests on those |
170 # gets additional generated targets which would require many lines here to | 170 # gets additional generated targets which would require many lines here to |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 "quic/quictransport_unittest.cc", | 202 "quic/quictransport_unittest.cc", |
203 "quic/quictransportchannel_unittest.cc", | 203 "quic/quictransportchannel_unittest.cc", |
204 "quic/reliablequicstream_unittest.cc", | 204 "quic/reliablequicstream_unittest.cc", |
205 ] | 205 ] |
206 } | 206 } |
207 deps = [ | 207 deps = [ |
208 ":p2p_test_utils", | 208 ":p2p_test_utils", |
209 ":rtc_p2p", | 209 ":rtc_p2p", |
210 "../api:fakemetricsobserver", | 210 "../api:fakemetricsobserver", |
211 "../api:ortc_api", | 211 "../api:ortc_api", |
212 "../rtc_base:rtc_base", | 212 "../base:rtc_base", |
213 "../rtc_base:rtc_base_approved", | 213 "../base:rtc_base_approved", |
214 "../rtc_base:rtc_base_tests_utils", | 214 "../base:rtc_base_tests_utils", |
215 "../test:test_support", | 215 "../test:test_support", |
216 "//testing/gmock", | 216 "//testing/gmock", |
217 "//testing/gtest", | 217 "//testing/gtest", |
218 ] | 218 ] |
219 if (!build_with_chromium && is_clang) { | 219 if (!build_with_chromium && is_clang) { |
220 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 220 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
221 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 221 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
222 } | 222 } |
223 defines = [ "GTEST_RELATIVE_PATH" ] | 223 defines = [ "GTEST_RELATIVE_PATH" ] |
224 } | 224 } |
225 } | 225 } |
226 | 226 |
227 rtc_static_library("libstunprober") { | 227 rtc_static_library("libstunprober") { |
228 sources = [ | 228 sources = [ |
229 "stunprober/stunprober.cc", | 229 "stunprober/stunprober.cc", |
230 ] | 230 ] |
231 | 231 |
232 if (!build_with_chromium && is_clang) { | 232 if (!build_with_chromium && is_clang) { |
233 # Suppress warnings from Chrome's Clang plugins. | 233 # Suppress warnings from Chrome's Clang plugins. |
234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
236 } | 236 } |
237 | 237 |
238 deps = [ | 238 deps = [ |
239 ":rtc_p2p", | 239 ":rtc_p2p", |
240 "..:webrtc_common", | 240 "..:webrtc_common", |
241 "../rtc_base:rtc_base", | 241 "../base:rtc_base", |
242 ] | 242 ] |
243 } | 243 } |
244 | 244 |
245 if (rtc_include_tests) { | 245 if (rtc_include_tests) { |
246 rtc_source_set("libstunprober_unittests") { | 246 rtc_source_set("libstunprober_unittests") { |
247 testonly = true | 247 testonly = true |
248 | 248 |
249 # Skip restricting visibility on mobile platforms since the tests on those | 249 # Skip restricting visibility on mobile platforms since the tests on those |
250 # gets additional generated targets which would require many lines here to | 250 # gets additional generated targets which would require many lines here to |
251 # cover (which would be confusing to read and hard to maintain). | 251 # cover (which would be confusing to read and hard to maintain). |
252 if (!is_android && !is_ios) { | 252 if (!is_android && !is_ios) { |
253 visibility = [ "//webrtc:rtc_unittests" ] | 253 visibility = [ "//webrtc:rtc_unittests" ] |
254 } | 254 } |
255 sources = [ | 255 sources = [ |
256 "stunprober/stunprober_unittest.cc", | 256 "stunprober/stunprober_unittest.cc", |
257 ] | 257 ] |
258 deps = [ | 258 deps = [ |
259 ":libstunprober", | 259 ":libstunprober", |
260 ":p2p_test_utils", | 260 ":p2p_test_utils", |
261 ":rtc_p2p", | 261 ":rtc_p2p", |
262 "../rtc_base:rtc_base", | 262 "../base:rtc_base", |
263 "../rtc_base:rtc_base_tests_utils", | 263 "../base:rtc_base_tests_utils", |
264 "//testing/gmock", | 264 "//testing/gmock", |
265 "//testing/gtest", | 265 "//testing/gtest", |
266 ] | 266 ] |
267 if (!build_with_chromium && is_clang) { | 267 if (!build_with_chromium && is_clang) { |
268 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 268 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
270 } | 270 } |
271 defines = [ "GTEST_RELATIVE_PATH" ] | 271 defines = [ "GTEST_RELATIVE_PATH" ] |
272 } | 272 } |
273 } | 273 } |
OLD | NEW |