| 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 if (is_android) { | 10 if (is_android) { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 214 |
| 217 if (rtc_build_libsrtp) { | 215 if (rtc_build_libsrtp) { |
| 218 deps += [ "//third_party/libsrtp" ] | 216 deps += [ "//third_party/libsrtp" ] |
| 219 } | 217 } |
| 220 | 218 |
| 221 if (is_android) { | 219 if (is_android) { |
| 222 deps += [ "//testing/android/native_test:native_test_support" ] | 220 deps += [ "//testing/android/native_test:native_test_support" ] |
| 223 } | 221 } |
| 224 } | 222 } |
| 225 | 223 |
| 224 rtc_source_set("pc_test_utils") { |
| 225 testonly = true |
| 226 sources = [ |
| 227 "test/fakeaudiocapturemodule.cc", |
| 228 "test/fakeaudiocapturemodule.h", |
| 229 "test/fakedatachannelprovider.h", |
| 230 "test/fakeperiodicvideocapturer.h", |
| 231 "test/fakertccertificategenerator.h", |
| 232 "test/fakevideotrackrenderer.h", |
| 233 "test/fakevideotracksource.h", |
| 234 "test/mock_datachannel.h", |
| 235 "test/mock_peerconnection.h", |
| 236 "test/mock_webrtcsession.h", |
| 237 "test/mockpeerconnectionobservers.h", |
| 238 "test/peerconnectiontestwrapper.cc", |
| 239 "test/peerconnectiontestwrapper.h", |
| 240 "test/rtcstatsobtainer.h", |
| 241 "test/testsdpstrings.h", |
| 242 ] |
| 243 |
| 244 deps = [ |
| 245 ":libjingle_peerconnection", |
| 246 "../base:rtc_base_tests_utils", |
| 247 "//testing/gmock", |
| 248 ] |
| 249 |
| 250 if (!build_with_chromium && is_clang) { |
| 251 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 252 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 253 } |
| 254 } |
| 255 |
| 226 config("peerconnection_unittests_config") { | 256 config("peerconnection_unittests_config") { |
| 227 # The warnings below are enabled by default. Since GN orders compiler flags | 257 # The warnings below are enabled by default. Since GN orders compiler flags |
| 228 # for a target before flags from configs, the only way to disable such | 258 # for a target before flags from configs, the only way to disable such |
| 229 # warnings is by having them in a separate config, loaded from the target. | 259 # warnings is by having them in a separate config, loaded from the target. |
| 230 # TODO(kjellander): Make the code compile without disabling these flags. | 260 # TODO(kjellander): Make the code compile without disabling these flags. |
| 231 # See https://bugs.webrtc.org/3307. | 261 # See https://bugs.webrtc.org/3307. |
| 232 if (is_clang && is_win) { | 262 if (is_clang && is_win) { |
| 233 cflags = [ | 263 cflags = [ |
| 234 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267 | 264 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267 |
| 235 # for -Wno-sign-compare | 265 # for -Wno-sign-compare |
| (...skipping 11 matching lines...) Expand all Loading... |
| 247 check_includes = false # TODO(kjellander): Remove (bugs.webrtc.org/6828) | 277 check_includes = false # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
| 248 testonly = true | 278 testonly = true |
| 249 sources = [ | 279 sources = [ |
| 250 "datachannel_unittest.cc", | 280 "datachannel_unittest.cc", |
| 251 "dtmfsender_unittest.cc", | 281 "dtmfsender_unittest.cc", |
| 252 "fakemediacontroller.h", | 282 "fakemediacontroller.h", |
| 253 "jsepsessiondescription_unittest.cc", | 283 "jsepsessiondescription_unittest.cc", |
| 254 "localaudiosource_unittest.cc", | 284 "localaudiosource_unittest.cc", |
| 255 "mediaconstraintsinterface_unittest.cc", | 285 "mediaconstraintsinterface_unittest.cc", |
| 256 "mediastream_unittest.cc", | 286 "mediastream_unittest.cc", |
| 257 "ortcfactory_unittest.cc", | |
| 258 "peerconnection_unittest.cc", | 287 "peerconnection_unittest.cc", |
| 259 "peerconnectionendtoend_unittest.cc", | 288 "peerconnectionendtoend_unittest.cc", |
| 260 "peerconnectionfactory_unittest.cc", | 289 "peerconnectionfactory_unittest.cc", |
| 261 "peerconnectioninterface_unittest.cc", | 290 "peerconnectioninterface_unittest.cc", |
| 262 "proxy_unittest.cc", | 291 "proxy_unittest.cc", |
| 263 "rtcstats_integrationtest.cc", | 292 "rtcstats_integrationtest.cc", |
| 264 "rtcstatscollector_unittest.cc", | 293 "rtcstatscollector_unittest.cc", |
| 265 "rtpsenderreceiver_unittest.cc", | 294 "rtpsenderreceiver_unittest.cc", |
| 266 "sctputils_unittest.cc", | 295 "sctputils_unittest.cc", |
| 267 "statscollector_unittest.cc", | 296 "statscollector_unittest.cc", |
| 268 "test/fakeaudiocapturemodule.cc", | |
| 269 "test/fakeaudiocapturemodule.h", | |
| 270 "test/fakeaudiocapturemodule_unittest.cc", | 297 "test/fakeaudiocapturemodule_unittest.cc", |
| 271 "test/fakedatachannelprovider.h", | |
| 272 "test/fakeperiodicvideocapturer.h", | |
| 273 "test/fakertccertificategenerator.h", | |
| 274 "test/fakevideotrackrenderer.h", | |
| 275 "test/fakevideotracksource.h", | |
| 276 "test/mock_datachannel.h", | |
| 277 "test/mock_peerconnection.h", | |
| 278 "test/mock_webrtcsession.h", | |
| 279 "test/mockpeerconnectionobservers.h", | |
| 280 "test/peerconnectiontestwrapper.cc", | |
| 281 "test/peerconnectiontestwrapper.h", | |
| 282 "test/rtcstatsobtainer.h", | |
| 283 "test/testsdpstrings.h", | |
| 284 "videocapturertracksource_unittest.cc", | 298 "videocapturertracksource_unittest.cc", |
| 285 "videotrack_unittest.cc", | 299 "videotrack_unittest.cc", |
| 286 "webrtcsdp_unittest.cc", | 300 "webrtcsdp_unittest.cc", |
| 287 "webrtcsession_unittest.cc", | 301 "webrtcsession_unittest.cc", |
| 288 ] | 302 ] |
| 289 | 303 |
| 290 if (rtc_enable_sctp) { | 304 if (rtc_enable_sctp) { |
| 291 defines = [ "HAVE_SCTP" ] | 305 defines = [ "HAVE_SCTP" ] |
| 292 } | 306 } |
| 293 | 307 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 ] | 340 ] |
| 327 deps += [ | 341 deps += [ |
| 328 "//testing/android/native_test:native_test_support", | 342 "//testing/android/native_test:native_test_support", |
| 329 "//webrtc/sdk/android:libjingle_peerconnection_java", | 343 "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 330 "//webrtc/sdk/android:libjingle_peerconnection_jni", | 344 "//webrtc/sdk/android:libjingle_peerconnection_jni", |
| 331 ] | 345 ] |
| 332 } | 346 } |
| 333 | 347 |
| 334 deps += [ | 348 deps += [ |
| 335 ":libjingle_peerconnection", | 349 ":libjingle_peerconnection", |
| 350 ":pc_test_utils", |
| 336 "..:webrtc_common", | 351 "..:webrtc_common", |
| 337 "../api:fakemetricsobserver", | 352 "../api:fakemetricsobserver", |
| 338 "../base:rtc_base_tests_utils", | 353 "../base:rtc_base_tests_utils", |
| 339 "../media:rtc_unittest_main", | 354 "../media:rtc_unittest_main", |
| 340 "../pc:rtc_pc", | 355 "../pc:rtc_pc", |
| 341 "../system_wrappers:metrics_default", | 356 "../system_wrappers:metrics_default", |
| 342 "//testing/gmock", | 357 "//testing/gmock", |
| 343 ] | 358 ] |
| 344 | 359 |
| 345 if (is_android) { | 360 if (is_android) { |
| 346 deps += [ "//testing/android/native_test:native_test_support" ] | 361 deps += [ "//testing/android/native_test:native_test_support" ] |
| 347 | 362 |
| 348 shard_timeout = 900 | 363 shard_timeout = 900 |
| 349 } | 364 } |
| 350 } | 365 } |
| 351 } | 366 } |
| OLD | NEW |