Move resources to resources/BUILD.gn.
iOS bundle all resources in the same folder and some conflicts can arise from that. Having all resources in the same file makes it easier to reason about it. Change-Id: I37f420dfbd265ec644804e9d4c96515c83d2a992 Bug: b/397385850 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/377821 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Jeremy Leconte <jleconte@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43944}
This commit is contained in:
parent
cea5e723b5
commit
7dea26d8bb
14
BUILD.gn
14
BUILD.gn
@ -617,16 +617,6 @@ if (use_libfuzzer || use_afl) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rtc_include_tests && !build_with_chromium) {
|
if (rtc_include_tests && !build_with_chromium) {
|
||||||
rtc_unittests_resources = [ "resources/reference_video_640x360_30fps.y4m" ]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("rtc_unittests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = rtc_unittests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_test("rtc_unittests") {
|
rtc_test("rtc_unittests") {
|
||||||
testonly = true
|
testonly = true
|
||||||
|
|
||||||
@ -672,7 +662,7 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
"test/network:network_emulation_unittests",
|
"test/network:network_emulation_unittests",
|
||||||
]
|
]
|
||||||
|
|
||||||
data = rtc_unittests_resources
|
data_deps = [ "resources:rtc_unittests_data" ]
|
||||||
|
|
||||||
if (rtc_enable_protobuf) {
|
if (rtc_enable_protobuf) {
|
||||||
deps += [
|
deps += [
|
||||||
@ -682,7 +672,7 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":rtc_unittests_bundle_data" ]
|
deps += [ "resources:rtc_unittests_bundle_data" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
|
|||||||
@ -127,16 +127,6 @@ rtc_source_set("frame_counts") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rtc_include_tests && !build_with_chromium) {
|
if (rtc_include_tests && !build_with_chromium) {
|
||||||
common_video_resources = [ "../resources/foreman_cif.yuv" ]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("common_video_unittests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = common_video_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("corruption_detection_converters_unittest") {
|
rtc_library("corruption_detection_converters_unittest") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [ "corruption_detection_converters_unittest.cc" ]
|
sources = [ "corruption_detection_converters_unittest.cc" ]
|
||||||
@ -199,13 +189,13 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
"//third_party/libyuv",
|
"//third_party/libyuv",
|
||||||
]
|
]
|
||||||
|
|
||||||
data = common_video_resources
|
data_deps = [ "../resources:common_video_data" ]
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
shard_timeout = 900
|
shard_timeout = 900
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":common_video_unittests_bundle_data" ]
|
deps += [ "../resources:common_video_unittests_bundle_data" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -905,24 +905,6 @@ if (rtc_include_tests) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!build_with_chromium) {
|
if (!build_with_chromium) {
|
||||||
rtc_media_unittests_resources = [
|
|
||||||
"../resources/media/captured-320x240-2s-48.frames",
|
|
||||||
"../resources/media/faces.1280x720_P420.yuv",
|
|
||||||
"../resources/media/faces_I400.jpg",
|
|
||||||
"../resources/media/faces_I411.jpg",
|
|
||||||
"../resources/media/faces_I420.jpg",
|
|
||||||
"../resources/media/faces_I422.jpg",
|
|
||||||
"../resources/media/faces_I444.jpg",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("rtc_media_unittests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = rtc_media_unittests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_test("rtc_media_unittests") {
|
rtc_test("rtc_media_unittests") {
|
||||||
testonly = true
|
testonly = true
|
||||||
|
|
||||||
@ -1093,14 +1075,14 @@ if (rtc_include_tests) {
|
|||||||
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ]
|
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
data = rtc_media_unittests_resources
|
data_deps = [ "../resources:rtc_media_unittests_data" ]
|
||||||
|
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
shard_timeout = 900
|
shard_timeout = 900
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":rtc_media_unittests_bundle_data" ]
|
deps += [ "../resources:rtc_media_unittests_bundle_data" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtc_build_dcsctp) {
|
if (rtc_build_dcsctp) {
|
||||||
|
|||||||
@ -966,17 +966,6 @@ if (rtc_include_tests) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!build_with_chromium) {
|
if (!build_with_chromium) {
|
||||||
audio_decoder_unittests_resources =
|
|
||||||
[ "../../resources/audio_coding/testfile32kHz.pcm" ]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("audio_decoder_unittests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = audio_decoder_unittests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_test("audio_decoder_unittests") {
|
rtc_test("audio_decoder_unittests") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [ "neteq/audio_decoder_unittest.cc" ]
|
sources = [ "neteq/audio_decoder_unittest.cc" ]
|
||||||
@ -999,7 +988,7 @@ if (rtc_include_tests) {
|
|||||||
"//testing/gtest",
|
"//testing/gtest",
|
||||||
] + audio_coding_deps
|
] + audio_coding_deps
|
||||||
|
|
||||||
data = audio_decoder_unittests_resources
|
data_deps = [ "../../resources:audio_decoder_unittests_data" ]
|
||||||
|
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
use_default_launcher = false
|
use_default_launcher = false
|
||||||
@ -1007,7 +996,7 @@ if (rtc_include_tests) {
|
|||||||
shard_timeout = 900
|
shard_timeout = 900
|
||||||
}
|
}
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":audio_decoder_unittests_bundle_data" ]
|
deps += [ "../../resources:audio_decoder_unittests_bundle_data" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1069,20 +1058,6 @@ if (rtc_include_tests) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!build_with_chromium) {
|
if (!build_with_chromium) {
|
||||||
audio_codec_speed_tests_resources = [
|
|
||||||
"//resources/audio_coding/music_stereo_48kHz.pcm",
|
|
||||||
"//resources/audio_coding/speech_mono_16kHz.pcm",
|
|
||||||
"//resources/audio_coding/speech_mono_32_48kHz.pcm",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("audio_codec_speed_tests_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = audio_codec_speed_tests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_test("audio_codec_speed_tests") {
|
rtc_test("audio_codec_speed_tests") {
|
||||||
testonly = true
|
testonly = true
|
||||||
defines = []
|
defines = []
|
||||||
@ -1096,7 +1071,7 @@ if (rtc_include_tests) {
|
|||||||
"codecs/tools/audio_codec_speed_test.h",
|
"codecs/tools/audio_codec_speed_test.h",
|
||||||
]
|
]
|
||||||
|
|
||||||
data = audio_codec_speed_tests_resources
|
data_deps = [ "../../resources:audio_codec_speed_tests_data" ]
|
||||||
|
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
use_default_launcher = false
|
use_default_launcher = false
|
||||||
@ -1105,7 +1080,7 @@ if (rtc_include_tests) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":audio_codec_speed_tests_data" ]
|
deps += [ "../../resources:audio_codec_speed_tests_bundle_data" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
deps += [
|
deps += [
|
||||||
|
|||||||
@ -863,39 +863,6 @@ if (rtc_include_tests) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
video_coding_modules_tests_resources = []
|
|
||||||
if (is_android) {
|
|
||||||
video_coding_modules_tests_resources += [
|
|
||||||
"../../resources/foreman_128x96.yuv",
|
|
||||||
"../../resources/foreman_160x120.yuv",
|
|
||||||
"../../resources/foreman_176x144.yuv",
|
|
||||||
"../../resources/foreman_240x136.yuv",
|
|
||||||
"../../resources/foreman_320x240.yuv",
|
|
||||||
"../../resources/foreman_480x272.yuv",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
if (!is_android) {
|
|
||||||
video_coding_modules_tests_resources += [
|
|
||||||
"../../resources/ConferenceMotion_1280_720_50.yuv",
|
|
||||||
"../../resources/FourPeople_1280x720_30.yuv",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
num_video_coding_modules_tests_resources = 0
|
|
||||||
foreach(i, video_coding_modules_tests_resources) {
|
|
||||||
num_video_coding_modules_tests_resources += 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if (num_video_coding_modules_tests_resources > 0) {
|
|
||||||
if (is_ios || is_mac) {
|
|
||||||
bundle_data("video_coding_modules_tests_resources_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = video_coding_modules_tests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("videocodec_test_impl") {
|
rtc_library("videocodec_test_impl") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [
|
sources = [
|
||||||
@ -1083,7 +1050,7 @@ if (rtc_include_tests) {
|
|||||||
"//third_party/libyuv",
|
"//third_party/libyuv",
|
||||||
]
|
]
|
||||||
|
|
||||||
data = video_coding_modules_tests_resources
|
data_deps = [ "../../resources:video_coding_modules_tests_data" ]
|
||||||
|
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
|
sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
|
||||||
@ -1098,10 +1065,10 @@ if (rtc_include_tests) {
|
|||||||
sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
|
sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
|
||||||
|
|
||||||
deps += [ ":objc_codec_factory_helper" ]
|
deps += [ ":objc_codec_factory_helper" ]
|
||||||
|
|
||||||
if (num_video_coding_modules_tests_resources > 0) {
|
|
||||||
deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
|
|
||||||
}
|
}
|
||||||
|
if (is_ios) {
|
||||||
|
deps +=
|
||||||
|
[ "../../resources:video_coding_modules_tests_resources_bundle_data" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtc_build_libvpx) {
|
if (rtc_build_libvpx) {
|
||||||
|
|||||||
19
pc/BUILD.gn
19
pc/BUILD.gn
@ -2796,24 +2796,8 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
svc_tests_resources = [
|
|
||||||
"../resources/difficult_photo_1850_1110.yuv",
|
|
||||||
"../resources/photo_1850_1110.yuv",
|
|
||||||
"../resources/presentation_1850_1110.yuv",
|
|
||||||
"../resources/web_screenshot_1850_1110.yuv",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("svc_tests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = svc_tests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_test("svc_tests") {
|
rtc_test("svc_tests") {
|
||||||
sources = [ "test/svc_e2e_tests.cc" ]
|
sources = [ "test/svc_e2e_tests.cc" ]
|
||||||
data = svc_tests_resources
|
|
||||||
deps = [
|
deps = [
|
||||||
"../api:create_network_emulation_manager",
|
"../api:create_network_emulation_manager",
|
||||||
"../api:create_peer_connection_quality_test_frame_generator",
|
"../api:create_peer_connection_quality_test_frame_generator",
|
||||||
@ -2843,9 +2827,10 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
"../test/pc/e2e:network_quality_metrics_reporter",
|
"../test/pc/e2e:network_quality_metrics_reporter",
|
||||||
"../test/pc/e2e/analyzer/video:default_video_quality_analyzer",
|
"../test/pc/e2e/analyzer/video:default_video_quality_analyzer",
|
||||||
]
|
]
|
||||||
|
data_deps = [ "../resources:svc_tests_data" ]
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":svc_tests_bundle_data" ]
|
deps += [ "../resources:svc_tests_bundle_data" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,25 @@
|
|||||||
|
|
||||||
import("../webrtc.gni")
|
import("../webrtc.gni")
|
||||||
|
|
||||||
|
audio_codec_speed_tests_resources = [
|
||||||
|
"audio_coding/music_stereo_48kHz.pcm",
|
||||||
|
"audio_coding/speech_mono_16kHz.pcm",
|
||||||
|
"audio_coding/speech_mono_32_48kHz.pcm",
|
||||||
|
]
|
||||||
|
group("audio_codec_speed_tests_data") {
|
||||||
|
data = audio_codec_speed_tests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
audio_decoder_unittests_resources = [ "audio_coding/testfile32kHz.pcm" ]
|
||||||
|
group("audio_decoder_unittests_data") {
|
||||||
|
data = audio_decoder_unittests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
common_video_resources = [ "foreman_cif.yuv" ]
|
||||||
|
group("common_video_data") {
|
||||||
|
data = common_video_resources
|
||||||
|
}
|
||||||
|
|
||||||
modules_tests_resources = [
|
modules_tests_resources = [
|
||||||
"audio_coding/testfile16kHz.pcm",
|
"audio_coding/testfile16kHz.pcm",
|
||||||
"audio_coding/testfile32kHz.pcm",
|
"audio_coding/testfile32kHz.pcm",
|
||||||
@ -17,13 +36,6 @@ modules_tests_resources = [
|
|||||||
group("modules_tests_data") {
|
group("modules_tests_data") {
|
||||||
data = modules_tests_resources
|
data = modules_tests_resources
|
||||||
}
|
}
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("modules_tests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = modules_tests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
modules_unittests_resources = [
|
modules_unittests_resources = [
|
||||||
"audio_coding/neteq_opus.rtp",
|
"audio_coding/neteq_opus.rtp",
|
||||||
@ -131,12 +143,116 @@ modules_unittests_resources = [
|
|||||||
group("modules_unittests_data") {
|
group("modules_unittests_data") {
|
||||||
data = modules_unittests_resources
|
data = modules_unittests_resources
|
||||||
}
|
}
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("modules_unittests_bundle_data") {
|
network_tester_unittests_resources = [
|
||||||
testonly = true
|
"network_tester/client_config.dat",
|
||||||
sources = modules_unittests_resources
|
"network_tester/server_config.dat",
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
]
|
||||||
|
group("network_tester_unittests_data") {
|
||||||
|
data = network_tester_unittests_resources
|
||||||
}
|
}
|
||||||
|
|
||||||
|
peer_connection_e2e_smoke_test_resources = [
|
||||||
|
"pc_quality_smoke_test_alice_source.wav",
|
||||||
|
"pc_quality_smoke_test_bob_source.wav",
|
||||||
|
]
|
||||||
|
group("peer_connection_e2e_smoke_test_data") {
|
||||||
|
data = peer_connection_e2e_smoke_test_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
rtc_media_unittests_resources = [
|
||||||
|
"media/captured-320x240-2s-48.frames",
|
||||||
|
"media/faces.1280x720_P420.yuv",
|
||||||
|
"media/faces_I400.jpg",
|
||||||
|
"media/faces_I411.jpg",
|
||||||
|
"media/faces_I420.jpg",
|
||||||
|
"media/faces_I422.jpg",
|
||||||
|
"media/faces_I444.jpg",
|
||||||
|
]
|
||||||
|
group("rtc_media_unittests_data") {
|
||||||
|
data = rtc_media_unittests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
rtc_unittests_resources = [ "reference_video_640x360_30fps.y4m" ]
|
||||||
|
group("rtc_unittests_data") {
|
||||||
|
data = rtc_unittests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
scenario_resources = [
|
||||||
|
"difficult_photo_1850_1110.yuv",
|
||||||
|
"photo_1850_1110.yuv",
|
||||||
|
"presentation_1850_1110.yuv",
|
||||||
|
"web_screenshot_1850_1110.yuv",
|
||||||
|
]
|
||||||
|
group("scenario_data") {
|
||||||
|
data = scenario_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
scenario_unittest_resources = [ "foreman_cif.yuv" ]
|
||||||
|
group("scenario_unittest_data") {
|
||||||
|
data = scenario_unittest_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
svc_tests_resources = [
|
||||||
|
"difficult_photo_1850_1110.yuv",
|
||||||
|
"photo_1850_1110.yuv",
|
||||||
|
"presentation_1850_1110.yuv",
|
||||||
|
"web_screenshot_1850_1110.yuv",
|
||||||
|
]
|
||||||
|
group("svc_tests_data") {
|
||||||
|
data = svc_tests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
test_support_unittests_resources = [
|
||||||
|
"foreman_cif_short.yuv",
|
||||||
|
"video_coding/frame-ethernet-ii.pcap",
|
||||||
|
"video_coding/frame-loopback.pcap",
|
||||||
|
"video_coding/pltype103.rtp",
|
||||||
|
"video_coding/pltype103_header_only.rtp",
|
||||||
|
"video_coding/ssrcs-2.pcap",
|
||||||
|
"video_coding/ssrcs-3.pcap",
|
||||||
|
]
|
||||||
|
group("test_support_unittests_data") {
|
||||||
|
data = test_support_unittests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
tools_unittests_resources = [
|
||||||
|
"foreman_128x96.yuv",
|
||||||
|
"foreman_cif.yuv",
|
||||||
|
"reference_less_video_test_file.y4m",
|
||||||
|
"rtc_event_log/rtc_event_log_500kbps.binarypb",
|
||||||
|
]
|
||||||
|
group("tools_unittests_data") {
|
||||||
|
data = tools_unittests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
video_coding_modules_tests_resources = []
|
||||||
|
if (is_android) {
|
||||||
|
video_coding_modules_tests_resources += [
|
||||||
|
"foreman_128x96.yuv",
|
||||||
|
"foreman_160x120.yuv",
|
||||||
|
"foreman_176x144.yuv",
|
||||||
|
"foreman_240x136.yuv",
|
||||||
|
"foreman_320x240.yuv",
|
||||||
|
"foreman_480x272.yuv",
|
||||||
|
]
|
||||||
|
} else {
|
||||||
|
video_coding_modules_tests_resources += [
|
||||||
|
"ConferenceMotion_1280_720_50.yuv",
|
||||||
|
"FourPeople_1280x720_30.yuv",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
group("video_coding_modules_tests_data") {
|
||||||
|
data = video_coding_modules_tests_resources
|
||||||
|
}
|
||||||
|
|
||||||
|
video_engine_tests_resources = [
|
||||||
|
"ConferenceMotion_1280_720_50.yuv",
|
||||||
|
"foreman_cif_short.yuv",
|
||||||
|
"voice_engine/audio_long16.pcm",
|
||||||
|
]
|
||||||
|
group("video_engine_tests_data") {
|
||||||
|
data = video_engine_tests_resources
|
||||||
}
|
}
|
||||||
|
|
||||||
webrtc_perf_tests_resources = [
|
webrtc_perf_tests_resources = [
|
||||||
@ -155,26 +271,91 @@ webrtc_perf_tests_resources = [
|
|||||||
group("webrtc_perf_tests_data") {
|
group("webrtc_perf_tests_data") {
|
||||||
data = webrtc_perf_tests_resources
|
data = webrtc_perf_tests_resources
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
|
bundle_data("audio_codec_speed_tests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = audio_codec_speed_tests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("audio_decoder_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = audio_decoder_unittests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("common_video_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = common_video_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("modules_tests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = modules_tests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("modules_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = modules_unittests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("network_tester_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = network_tester_unittests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("peer_connection_e2e_smoke_test_resources_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = peer_connection_e2e_smoke_test_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("rtc_media_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = rtc_media_unittests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("rtc_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = rtc_unittests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("scenario_resources_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = scenario_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("scenario_unittest_resources_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = scenario_unittest_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("svc_tests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = svc_tests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("test_support_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = test_support_unittests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("tools_unittests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = tools_unittests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("video_coding_modules_tests_resources_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = video_coding_modules_tests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
|
bundle_data("video_engine_tests_bundle_data") {
|
||||||
|
testonly = true
|
||||||
|
sources = video_engine_tests_resources
|
||||||
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
|
}
|
||||||
bundle_data("webrtc_perf_tests_bundle_data") {
|
bundle_data("webrtc_perf_tests_bundle_data") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = webrtc_perf_tests_resources
|
sources = webrtc_perf_tests_resources
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
video_engine_tests_resources = [
|
|
||||||
"ConferenceMotion_1280_720_50.yuv",
|
|
||||||
"foreman_cif_short.yuv",
|
|
||||||
"voice_engine/audio_long16.pcm",
|
|
||||||
]
|
|
||||||
group("video_engine_tests_data") {
|
|
||||||
data = video_engine_tests_resources
|
|
||||||
}
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("video_engine_tests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = video_engine_tests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -550,21 +550,6 @@ if (rtc_include_tests) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tools_unittests_resources = [
|
|
||||||
"../resources/foreman_128x96.yuv",
|
|
||||||
"../resources/foreman_cif.yuv",
|
|
||||||
"../resources/reference_less_video_test_file.y4m",
|
|
||||||
"../resources/rtc_event_log/rtc_event_log_500kbps.binarypb",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("tools_unittests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = tools_unittests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_test("tools_unittests") {
|
rtc_test("tools_unittests") {
|
||||||
testonly = true
|
testonly = true
|
||||||
|
|
||||||
@ -612,12 +597,12 @@ if (rtc_include_tests) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
data = tools_unittests_resources
|
data_deps = [ "../resources:tools_unittests_data" ]
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
shard_timeout = 900
|
shard_timeout = 900
|
||||||
}
|
}
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":tools_unittests_bundle_data" ]
|
deps += [ "../resources:tools_unittests_bundle_data" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -62,19 +62,6 @@ if (rtc_enable_protobuf) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
network_tester_unittests_resources = [
|
|
||||||
"../../resources/network_tester/client_config.dat",
|
|
||||||
"../../resources/network_tester/server_config.dat",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("network_tester_unittests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = network_tester_unittests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("network_tester_unittests") {
|
rtc_library("network_tester_unittests") {
|
||||||
testonly = true
|
testonly = true
|
||||||
|
|
||||||
@ -92,13 +79,13 @@ if (rtc_enable_protobuf) {
|
|||||||
"//testing/gtest",
|
"//testing/gtest",
|
||||||
]
|
]
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
deps += [ ":network_tester_unittests_bundle_data" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
defines = [ "WEBRTC_NETWORK_TESTER_TEST_ENABLED" ]
|
defines = [ "WEBRTC_NETWORK_TESTER_TEST_ENABLED" ]
|
||||||
|
|
||||||
data = network_tester_unittests_resources
|
data_deps = [ "../../resources:network_tester_unittests_data" ]
|
||||||
|
|
||||||
|
if (is_ios) {
|
||||||
|
deps += [ "../../resources:network_tester_unittests_bundle_data" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rtc_executable("network_tester_server") {
|
rtc_executable("network_tester_server") {
|
||||||
|
|||||||
@ -653,24 +653,6 @@ if (rtc_include_tests) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
test_support_unittests_resources = [
|
|
||||||
"../resources/foreman_cif_short.yuv",
|
|
||||||
"../resources/video_coding/frame-ethernet-ii.pcap",
|
|
||||||
"../resources/video_coding/frame-loopback.pcap",
|
|
||||||
"../resources/video_coding/pltype103.rtp",
|
|
||||||
"../resources/video_coding/pltype103_header_only.rtp",
|
|
||||||
"../resources/video_coding/ssrcs-2.pcap",
|
|
||||||
"../resources/video_coding/ssrcs-3.pcap",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("test_support_unittests_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = test_support_unittests_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("fixed_fps_video_frame_writer_adapter_test") {
|
rtc_library("fixed_fps_video_frame_writer_adapter_test") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [ "testsupport/fixed_fps_video_frame_writer_adapter_test.cc" ]
|
sources = [ "testsupport/fixed_fps_video_frame_writer_adapter_test.cc" ]
|
||||||
@ -800,13 +782,13 @@ if (rtc_include_tests) {
|
|||||||
deps += [ "//third_party/catapult/tracing/tracing:histogram" ]
|
deps += [ "//third_party/catapult/tracing/tracing:histogram" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
data = test_support_unittests_resources
|
data_deps = [ "../resources:test_support_unittests_data" ]
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
shard_timeout = 900
|
shard_timeout = 900
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":test_support_unittests_bundle_data" ]
|
deps += [ "../resources:test_support_unittests_bundle_data" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_android) {
|
if (!is_android) {
|
||||||
|
|||||||
@ -291,18 +291,6 @@ if (!build_with_chromium) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
peer_connection_e2e_smoke_test_resources = [
|
|
||||||
"../../../resources/pc_quality_smoke_test_alice_source.wav",
|
|
||||||
"../../../resources/pc_quality_smoke_test_bob_source.wav",
|
|
||||||
]
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("peer_connection_e2e_smoke_test_resources_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = peer_connection_e2e_smoke_test_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("peer_connection_e2e_smoke_test") {
|
rtc_library("peer_connection_e2e_smoke_test") {
|
||||||
testonly = true
|
testonly = true
|
||||||
|
|
||||||
@ -344,12 +332,12 @@ if (!build_with_chromium) {
|
|||||||
"analyzer/video:default_video_quality_analyzer",
|
"analyzer/video:default_video_quality_analyzer",
|
||||||
"analyzer/video:default_video_quality_analyzer_shared",
|
"analyzer/video:default_video_quality_analyzer_shared",
|
||||||
]
|
]
|
||||||
data = peer_connection_e2e_smoke_test_resources
|
data_deps = [ "../../../resources:peer_connection_e2e_smoke_test_data" ]
|
||||||
if (is_mac || is_ios) {
|
if (is_mac || is_ios) {
|
||||||
deps += [ "../../../modules/video_coding:objc_codec_factory_helper" ]
|
deps += [ "../../../modules/video_coding:objc_codec_factory_helper" ]
|
||||||
}
|
}
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":peer_connection_e2e_smoke_test_resources_bundle_data" ]
|
deps += [ "../../../resources:peer_connection_e2e_smoke_test_resources_bundle_data" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -22,27 +22,6 @@ rtc_library("column_printer") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rtc_include_tests && !build_with_chromium) {
|
if (rtc_include_tests && !build_with_chromium) {
|
||||||
scenario_resources = [
|
|
||||||
"../../resources/difficult_photo_1850_1110.yuv",
|
|
||||||
"../../resources/photo_1850_1110.yuv",
|
|
||||||
"../../resources/presentation_1850_1110.yuv",
|
|
||||||
"../../resources/web_screenshot_1850_1110.yuv",
|
|
||||||
]
|
|
||||||
scenario_unittest_resources = [ "../../resources/foreman_cif.yuv" ]
|
|
||||||
|
|
||||||
if (is_ios) {
|
|
||||||
bundle_data("scenario_resources_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = scenario_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
bundle_data("scenario_unittest_resources_bundle_data") {
|
|
||||||
testonly = true
|
|
||||||
sources = scenario_unittest_resources
|
|
||||||
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rtc_library("scenario") {
|
rtc_library("scenario") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [
|
sources = [
|
||||||
@ -173,9 +152,9 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
if (rtc_enable_protobuf) {
|
if (rtc_enable_protobuf) {
|
||||||
deps += [ "../../modules/audio_coding:ana_config_proto" ]
|
deps += [ "../../modules/audio_coding:ana_config_proto" ]
|
||||||
}
|
}
|
||||||
data = scenario_resources
|
data_deps = [ "../../resources:scenario_data" ]
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":scenario_resources_bundle_data" ]
|
deps += [ "../../resources:scenario_resources_bundle_data" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rtc_library("scenario_unittests") {
|
rtc_library("scenario_unittests") {
|
||||||
@ -200,9 +179,9 @@ if (rtc_include_tests && !build_with_chromium) {
|
|||||||
"../logging:log_writer",
|
"../logging:log_writer",
|
||||||
"//testing/gmock",
|
"//testing/gmock",
|
||||||
]
|
]
|
||||||
data = scenario_unittest_resources
|
data_deps = [ "../../resources:scenario_unittest_data" ]
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
deps += [ ":scenario_unittest_resources_bundle_data" ]
|
deps += [ "../../resources:scenario_unittest_resources_bundle_data" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user