Skip to content

Commit b544d74

Browse files
committed
Merge branch '7339-testing'
2 parents c3b9e82 + 066466b commit b544d74

File tree

2,955 files changed

+30574
-31094
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,955 files changed

+30574
-31094
lines changed

.gn

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ default_args = {
8383
# let's temporarily disable it.
8484
enable_jni_multiplexing = false
8585

86-
# TODO(b/42223878): use_fuzztest_wrapper adds a dependency to //base so
87-
# let's temporarly disable it.
86+
# use_fuzztest_wrapper adds a dependency to //base so we have to disable it.
8887
use_fuzztest_wrapper = false
8988

9089
# Enable Rust in WebRTC
@@ -94,4 +93,7 @@ default_args = {
9493

9594
# See context on https://issues.chromium.org/issues/415076048.
9695
enable_js_protobuf = false
96+
97+
# Use Siso instead of Ninja.
98+
use_siso = true
9799
}

BUILD.gn

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ if (!build_with_chromium) {
7070
"pc:rtc_pc_unittests",
7171
"pc:slow_peer_connection_unittests",
7272
"pc:svc_tests",
73-
"rtc_tools:rtp_generator",
7473
"rtc_tools:video_encoder",
7574
"rtc_tools:video_replay",
7675
"stats:rtc_stats_unittests",
@@ -83,7 +82,9 @@ if (!build_with_chromium) {
8382
if (use_libfuzzer) {
8483
deps += [ "test/fuzzers" ]
8584
}
86-
if (!is_asan) {
85+
86+
# TODO(bugs.webrtc.org/430260876): Remove once rust links with libwebrtc.
87+
if (!is_asan && !rtc_rusty_base64) {
8788
# Do not build :webrtc_lib_link_test because lld complains on some OS
8889
# (e.g. when target_os = "mac") when is_asan=true. For more details,
8990
# see bugs.webrtc.org/11027#c5.
@@ -251,10 +252,6 @@ config("common_inherited_config") {
251252
if (is_ubsan) {
252253
cflags += [ "-fsanitize=float-cast-overflow" ]
253254
}
254-
255-
if (rtc_allow_deprecated_namespaces) {
256-
defines += [ "WEBRTC_ALLOW_DEPRECATED_NAMESPACES" ]
257-
}
258255
}
259256

260257
# TODO(bugs.webrtc.org/9693): Remove the possibility to suppress this warning
@@ -532,24 +529,24 @@ if (!build_with_chromium) {
532529
]
533530

534531
sources = []
532+
535533
complete_static_lib = true
536534
suppressed_configs += [ "//build/config/compiler:thin_archive" ]
537535
defines = []
538536

539537
# RingRTC change to exclude av1 and h264 factories
540538
deps = [
539+
"api:create_modular_peer_connection_factory",
541540
"api:create_peerconnection_factory",
542541
"api:enable_media",
543542
"api:libjingle_peerconnection_api",
544543
"api:rtc_error",
545544
"api:transport_api",
546-
"api/audio:create_audio_device_module",
547545
"api/audio_codecs:opus_audio_decoder_factory",
548546
"api/crypto",
549547
"api/rtc_event_log:rtc_event_log_factory",
550548
"api/task_queue",
551549
"api/task_queue:default_task_queue_factory",
552-
"api/test/metrics",
553550
"api/video_codecs:video_decoder_factory_template",
554551
# "api/video_codecs:video_decoder_factory_template_dav1d_adapter",
555552
"api/video_codecs:video_decoder_factory_template_libvpx_vp8_adapter",
@@ -595,9 +592,15 @@ if (!build_with_chromium) {
595592
if (rtc_enable_protobuf) {
596593
deps += [ "logging:rtc_event_log_proto" ]
597594
}
595+
596+
if (rtc_include_internal_audio_device) {
597+
deps += [ "api/audio:create_audio_device_module" ]
598+
}
598599
}
599600

600-
if (rtc_include_tests && !is_asan) {
601+
# TODO(bugs.webrtc.org/430260876): Compile webrtc lib with rust once toolchain
602+
# is working.
603+
if (rtc_include_tests && !is_asan && !rtc_rusty_base64) {
601604
rtc_executable("webrtc_lib_link_test") {
602605
testonly = true
603606

@@ -648,6 +651,7 @@ if (rtc_include_tests && !build_with_chromium) {
648651
"api/numerics:numerics_unittests",
649652
"api/task_queue:pending_task_safety_flag_unittests",
650653
"api/test/metrics:metrics_unittests",
654+
"api/test/network_emulation:network_queue_unittests",
651655
"api/transport:stun_unittest",
652656
"api/transport/rtp:corruption_detection_message_unittest",
653657
"api/video/test:rtc_api_video_unittests",
@@ -658,6 +662,7 @@ if (rtc_include_tests && !build_with_chromium) {
658662
"call:fake_network_pipe_unittests",
659663
"rtc_base:async_dns_resolver_unittests",
660664
"rtc_base:async_packet_socket_unittest",
665+
"rtc_base:async_tcp_socket_unittest",
661666
"rtc_base:async_udp_socket_unittest",
662667
"rtc_base:callback_list_unittests",
663668
"rtc_base:rtc_base_approved_unittests",

0 commit comments

Comments
 (0)