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

Side by Side Diff: webrtc/pc/BUILD.gn

Issue 2675173003: Adding "adapter" ORTC objects on top of ChannelManager/BaseChannel/etc. (Closed)
Patch Set: Add memcheck suppression for end-to-end tests. 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 unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/udptransport.h ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 if (is_android) { 10 if (is_android) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 "jsepsessiondescription.cc", 96 "jsepsessiondescription.cc",
97 "localaudiosource.cc", 97 "localaudiosource.cc",
98 "localaudiosource.h", 98 "localaudiosource.h",
99 "mediacontroller.cc", 99 "mediacontroller.cc",
100 "mediacontroller.h", 100 "mediacontroller.h",
101 "mediastream.cc", 101 "mediastream.cc",
102 "mediastream.h", 102 "mediastream.h",
103 "mediastreamobserver.cc", 103 "mediastreamobserver.cc",
104 "mediastreamobserver.h", 104 "mediastreamobserver.h",
105 "mediastreamtrack.h", 105 "mediastreamtrack.h",
106 "ortcfactory.cc",
107 "ortcfactory.h",
108 "peerconnection.cc", 106 "peerconnection.cc",
109 "peerconnection.h", 107 "peerconnection.h",
110 "peerconnectionfactory.cc", 108 "peerconnectionfactory.cc",
111 "peerconnectionfactory.h", 109 "peerconnectionfactory.h",
112 "remoteaudiosource.cc", 110 "remoteaudiosource.cc",
113 "remoteaudiosource.h", 111 "remoteaudiosource.h",
114 "rtcstatscollector.cc", 112 "rtcstatscollector.cc",
115 "rtcstatscollector.h", 113 "rtcstatscollector.h",
116 "rtpreceiver.cc", 114 "rtpreceiver.cc",
117 "rtpreceiver.h", 115 "rtpreceiver.h",
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 216
219 if (rtc_build_libsrtp) { 217 if (rtc_build_libsrtp) {
220 deps += [ "//third_party/libsrtp" ] 218 deps += [ "//third_party/libsrtp" ]
221 } 219 }
222 220
223 if (is_android) { 221 if (is_android) {
224 deps += [ "//testing/android/native_test:native_test_support" ] 222 deps += [ "//testing/android/native_test:native_test_support" ]
225 } 223 }
226 } 224 }
227 225
226 rtc_source_set("pc_test_utils") {
227 testonly = true
228 sources = [
229 "test/fakeaudiocapturemodule.cc",
230 "test/fakeaudiocapturemodule.h",
231 "test/fakedatachannelprovider.h",
232 "test/fakeperiodicvideocapturer.h",
233 "test/fakertccertificategenerator.h",
234 "test/fakevideotrackrenderer.h",
235 "test/fakevideotracksource.h",
236 "test/mock_datachannel.h",
237 "test/mock_peerconnection.h",
238 "test/mock_webrtcsession.h",
239 "test/mockpeerconnectionobservers.h",
240 "test/peerconnectiontestwrapper.cc",
241 "test/peerconnectiontestwrapper.h",
242 "test/rtcstatsobtainer.h",
243 "test/testsdpstrings.h",
244 ]
245
246 deps = [
247 ":libjingle_peerconnection",
248 "../base:rtc_base_tests_utils",
249 "//testing/gmock",
250 ]
251
252 if (!build_with_chromium && is_clang) {
253 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
254 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
255 }
256 }
257
228 config("peerconnection_unittests_config") { 258 config("peerconnection_unittests_config") {
229 # The warnings below are enabled by default. Since GN orders compiler flags 259 # The warnings below are enabled by default. Since GN orders compiler flags
230 # for a target before flags from configs, the only way to disable such 260 # for a target before flags from configs, the only way to disable such
231 # warnings is by having them in a separate config, loaded from the target. 261 # warnings is by having them in a separate config, loaded from the target.
232 # TODO(kjellander): Make the code compile without disabling these flags. 262 # TODO(kjellander): Make the code compile without disabling these flags.
233 # See https://bugs.webrtc.org/3307. 263 # See https://bugs.webrtc.org/3307.
234 if (is_clang && is_win) { 264 if (is_clang && is_win) {
235 cflags = [ 265 cflags = [
236 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267 266 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
237 # for -Wno-sign-compare 267 # for -Wno-sign-compare
(...skipping 11 matching lines...) Expand all
249 check_includes = false # TODO(kjellander): Remove (bugs.webrtc.org/6828) 279 check_includes = false # TODO(kjellander): Remove (bugs.webrtc.org/6828)
250 testonly = true 280 testonly = true
251 sources = [ 281 sources = [
252 "datachannel_unittest.cc", 282 "datachannel_unittest.cc",
253 "dtmfsender_unittest.cc", 283 "dtmfsender_unittest.cc",
254 "fakemediacontroller.h", 284 "fakemediacontroller.h",
255 "jsepsessiondescription_unittest.cc", 285 "jsepsessiondescription_unittest.cc",
256 "localaudiosource_unittest.cc", 286 "localaudiosource_unittest.cc",
257 "mediaconstraintsinterface_unittest.cc", 287 "mediaconstraintsinterface_unittest.cc",
258 "mediastream_unittest.cc", 288 "mediastream_unittest.cc",
259 "ortcfactory_unittest.cc",
260 "peerconnection_unittest.cc", 289 "peerconnection_unittest.cc",
261 "peerconnectionendtoend_unittest.cc", 290 "peerconnectionendtoend_unittest.cc",
262 "peerconnectionfactory_unittest.cc", 291 "peerconnectionfactory_unittest.cc",
263 "peerconnectioninterface_unittest.cc", 292 "peerconnectioninterface_unittest.cc",
264 "proxy_unittest.cc", 293 "proxy_unittest.cc",
265 "rtcstats_integrationtest.cc", 294 "rtcstats_integrationtest.cc",
266 "rtcstatscollector_unittest.cc", 295 "rtcstatscollector_unittest.cc",
267 "rtpsenderreceiver_unittest.cc", 296 "rtpsenderreceiver_unittest.cc",
268 "sctputils_unittest.cc", 297 "sctputils_unittest.cc",
269 "statscollector_unittest.cc", 298 "statscollector_unittest.cc",
270 "test/fakeaudiocapturemodule.cc",
271 "test/fakeaudiocapturemodule.h",
272 "test/fakeaudiocapturemodule_unittest.cc", 299 "test/fakeaudiocapturemodule_unittest.cc",
273 "test/fakedatachannelprovider.h",
274 "test/fakeperiodicvideocapturer.h",
275 "test/fakertccertificategenerator.h",
276 "test/fakevideotrackrenderer.h",
277 "test/fakevideotracksource.h",
278 "test/mock_datachannel.h",
279 "test/mock_peerconnection.h",
280 "test/mock_webrtcsession.h",
281 "test/mockpeerconnectionobservers.h",
282 "test/peerconnectiontestwrapper.cc",
283 "test/peerconnectiontestwrapper.h",
284 "test/rtcstatsobtainer.h",
285 "test/testsdpstrings.h", 300 "test/testsdpstrings.h",
286 "trackmediainfomap_unittest.cc", 301 "trackmediainfomap_unittest.cc",
287 "videocapturertracksource_unittest.cc", 302 "videocapturertracksource_unittest.cc",
288 "videotrack_unittest.cc", 303 "videotrack_unittest.cc",
289 "webrtcsdp_unittest.cc", 304 "webrtcsdp_unittest.cc",
290 "webrtcsession_unittest.cc", 305 "webrtcsession_unittest.cc",
291 ] 306 ]
292 307
293 if (rtc_enable_sctp) { 308 if (rtc_enable_sctp) {
294 defines = [ "HAVE_SCTP" ] 309 defines = [ "HAVE_SCTP" ]
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 ] 344 ]
330 deps += [ 345 deps += [
331 "//testing/android/native_test:native_test_support", 346 "//testing/android/native_test:native_test_support",
332 "//webrtc/sdk/android:libjingle_peerconnection_java", 347 "//webrtc/sdk/android:libjingle_peerconnection_java",
333 "//webrtc/sdk/android:libjingle_peerconnection_jni", 348 "//webrtc/sdk/android:libjingle_peerconnection_jni",
334 ] 349 ]
335 } 350 }
336 351
337 deps += [ 352 deps += [
338 ":libjingle_peerconnection", 353 ":libjingle_peerconnection",
354 ":pc_test_utils",
339 "..:webrtc_common", 355 "..:webrtc_common",
340 "../api:fakemetricsobserver", 356 "../api:fakemetricsobserver",
341 "../base:rtc_base_tests_utils", 357 "../base:rtc_base_tests_utils",
342 "../media:rtc_unittest_main", 358 "../media:rtc_unittest_main",
343 "../pc:rtc_pc", 359 "../pc:rtc_pc",
344 "../system_wrappers:metrics_default", 360 "../system_wrappers:metrics_default",
345 "//testing/gmock", 361 "//testing/gmock",
346 ] 362 ]
347 363
348 if (is_android) { 364 if (is_android) {
349 deps += [ "//testing/android/native_test:native_test_support" ] 365 deps += [ "//testing/android/native_test:native_test_support" ]
350 366
351 shard_timeout = 900 367 shard_timeout = 900
352 } 368 }
353 } 369 }
354 } 370 }
OLDNEW
« no previous file with comments | « webrtc/p2p/base/udptransport.h ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698