2018-09-27 13:47:01 +02:00
|
|
|
# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("column_printer") {
|
2019-02-11 14:40:17 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"column_printer.cc",
|
|
|
|
|
"column_printer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../rtc_base:macromagic",
|
|
|
|
|
"../../rtc_base:stringutils",
|
|
|
|
|
"../logging:log_writer",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
if (rtc_include_tests && !build_with_chromium) {
|
2025-02-21 00:00:32 -08:00
|
|
|
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}}" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("scenario") {
|
2018-09-27 13:47:01 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"audio_stream.cc",
|
|
|
|
|
"audio_stream.h",
|
|
|
|
|
"call_client.cc",
|
|
|
|
|
"call_client.h",
|
|
|
|
|
"hardware_codecs.cc",
|
|
|
|
|
"hardware_codecs.h",
|
|
|
|
|
"network_node.cc",
|
|
|
|
|
"network_node.h",
|
2019-04-15 13:18:19 +02:00
|
|
|
"performance_stats.cc",
|
2019-04-09 14:18:09 +02:00
|
|
|
"performance_stats.h",
|
2018-09-27 13:47:01 +02:00
|
|
|
"scenario.cc",
|
|
|
|
|
"scenario.h",
|
|
|
|
|
"scenario_config.cc",
|
|
|
|
|
"scenario_config.h",
|
2019-04-09 14:18:09 +02:00
|
|
|
"stats_collection.cc",
|
|
|
|
|
"stats_collection.h",
|
|
|
|
|
"video_frame_matcher.cc",
|
|
|
|
|
"video_frame_matcher.h",
|
2018-09-27 13:47:01 +02:00
|
|
|
"video_stream.cc",
|
|
|
|
|
"video_stream.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-02-11 14:40:17 +01:00
|
|
|
":column_printer",
|
2023-04-12 15:29:07 +02:00
|
|
|
"..:frame_generator_capturer",
|
2023-03-24 23:31:10 +01:00
|
|
|
"..:test_video_capturer",
|
2023-04-25 09:56:49 +02:00
|
|
|
"..:video_test_constants",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../:fake_video_codecs",
|
|
|
|
|
"../:fileutils",
|
|
|
|
|
"../:test_common",
|
|
|
|
|
"../:test_support",
|
|
|
|
|
"../:video_test_common",
|
2024-04-29 08:37:37 +00:00
|
|
|
"../..//test/network:simulated_network",
|
2023-01-12 17:00:22 +01:00
|
|
|
"../../api:array_view",
|
2019-12-05 15:59:00 +01:00
|
|
|
"../../api:create_frame_generator",
|
2019-04-01 13:34:55 +02:00
|
|
|
"../../api:fec_controller_api",
|
2019-12-05 15:59:00 +01:00
|
|
|
"../../api:frame_generator_api",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../api:libjingle_peerconnection_api",
|
2019-05-08 13:53:51 +02:00
|
|
|
"../../api:rtc_event_log_output_file",
|
2024-11-18 07:18:35 +00:00
|
|
|
"../../api:rtp_headers",
|
2019-08-26 10:45:28 +02:00
|
|
|
"../../api:rtp_parameters",
|
2024-11-18 07:18:35 +00:00
|
|
|
"../../api:scoped_refptr",
|
2021-02-10 14:31:24 +01:00
|
|
|
"../../api:sequence_checker",
|
2019-11-21 10:37:18 -08:00
|
|
|
"../../api:time_controller",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../api:transport_api",
|
2024-04-19 19:46:03 +00:00
|
|
|
"../../api/audio:audio_device",
|
2024-11-01 11:43:08 +01:00
|
|
|
"../../api/audio:builtin_audio_processing_builder",
|
2024-11-18 07:18:35 +00:00
|
|
|
"../../api/audio_codecs:audio_codecs_api",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../api/audio_codecs:builtin_audio_decoder_factory",
|
|
|
|
|
"../../api/audio_codecs:builtin_audio_encoder_factory",
|
2023-11-29 19:05:54 +01:00
|
|
|
"../../api/environment",
|
|
|
|
|
"../../api/environment:environment_factory",
|
2019-05-22 13:39:25 +02:00
|
|
|
"../../api/rtc_event_log",
|
|
|
|
|
"../../api/rtc_event_log:rtc_event_log_factory",
|
2022-07-07 20:29:30 +02:00
|
|
|
"../../api/task_queue",
|
2024-09-02 20:55:52 +00:00
|
|
|
"../../api/test/network_emulation",
|
2018-10-26 15:57:48 +02:00
|
|
|
"../../api/test/video:function_video_factory",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../../api/transport:network_control",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../api/units:data_rate",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../../api/units:data_size",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../api/units:time_delta",
|
|
|
|
|
"../../api/units:timestamp",
|
2018-11-08 10:02:56 -08:00
|
|
|
"../../api/video:builtin_video_bitrate_allocator_factory",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../../api/video:video_rtp_headers",
|
2022-06-17 11:26:02 +02:00
|
|
|
"../../api/video_codecs:scalability_mode",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../../audio",
|
|
|
|
|
"../../call",
|
|
|
|
|
"../../call:call_interfaces",
|
|
|
|
|
"../../call:rtp_sender",
|
|
|
|
|
"../../common_video",
|
2022-12-16 09:54:57 +00:00
|
|
|
"../../media:media_constants",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../media:rtc_audio_video",
|
|
|
|
|
"../../media:rtc_internal_video_codecs",
|
|
|
|
|
"../../modules/audio_device",
|
|
|
|
|
"../../modules/audio_device:mock_audio_device",
|
2023-04-19 17:47:03 +02:00
|
|
|
"../../modules/audio_device:test_audio_device_module",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../modules/audio_mixer:audio_mixer_impl",
|
|
|
|
|
"../../modules/audio_processing",
|
|
|
|
|
"../../modules/congestion_controller/goog_cc:test_goog_cc_printer",
|
|
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
"../../modules/rtp_rtcp:mock_rtp_rtcp",
|
|
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
"../../modules/video_coding:video_codec_interface",
|
|
|
|
|
"../../modules/video_coding:video_coding_utility",
|
|
|
|
|
"../../modules/video_coding:webrtc_h264",
|
|
|
|
|
"../../modules/video_coding:webrtc_vp8",
|
|
|
|
|
"../../modules/video_coding:webrtc_vp9",
|
2022-06-17 11:26:02 +02:00
|
|
|
"../../modules/video_coding/svc:scalability_mode_util",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../rtc_base:checks",
|
2022-04-19 17:40:46 +02:00
|
|
|
"../../rtc_base:copy_on_write_buffer",
|
2024-09-02 20:55:52 +00:00
|
|
|
"../../rtc_base:macromagic",
|
2023-01-04 12:01:09 +01:00
|
|
|
"../../rtc_base:net_helper",
|
2024-09-02 20:55:52 +00:00
|
|
|
"../../rtc_base:network_route",
|
2022-04-05 02:54:12 +02:00
|
|
|
"../../rtc_base:refcount",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
2022-04-04 16:57:52 +02:00
|
|
|
"../../rtc_base:rtc_event",
|
2019-04-13 18:59:53 +02:00
|
|
|
"../../rtc_base:rtc_numerics",
|
2020-09-18 18:23:08 +02:00
|
|
|
"../../rtc_base:rtc_stats_counters",
|
2018-10-05 15:39:24 +02:00
|
|
|
"../../rtc_base:safe_minmax",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../../rtc_base:socket_address",
|
2024-11-18 07:18:35 +00:00
|
|
|
"../../rtc_base:stringutils",
|
2019-03-19 18:08:37 +01:00
|
|
|
"../../rtc_base:task_queue_for_test",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../../rtc_base:threading",
|
2020-07-08 16:09:21 +02:00
|
|
|
"../../rtc_base/synchronization:mutex",
|
2019-04-01 09:18:14 +02:00
|
|
|
"../../rtc_base/task_utils:repeating_task",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../system_wrappers",
|
2022-09-27 16:53:04 +02:00
|
|
|
"../../video/config:streams_config",
|
2019-01-16 17:25:44 +01:00
|
|
|
"../logging:log_writer",
|
2019-07-05 10:48:17 +02:00
|
|
|
"../network:emulated_network",
|
2019-04-01 09:18:14 +02:00
|
|
|
"../time_controller",
|
2023-03-02 12:52:50 +00:00
|
|
|
"//third_party/abseil-cpp/absl/cleanup",
|
2019-07-18 13:44:12 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2022-07-07 20:29:30 +02:00
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
2018-12-19 13:14:41 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2020-04-01 13:43:08 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2024-05-23 11:21:53 +00:00
|
|
|
"//third_party/abseil-cpp/absl/strings:string_view",
|
2018-09-27 13:47:01 +02:00
|
|
|
]
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "../../modules/video_coding:android_codec_factory_helper" ]
|
|
|
|
|
} else if (is_ios || is_mac) {
|
|
|
|
|
deps += [ "../../modules/video_coding:objc_codec_factory_helper" ]
|
|
|
|
|
}
|
2018-10-17 16:27:55 +02:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
deps += [ "../../modules/audio_coding:ana_config_proto" ]
|
|
|
|
|
}
|
2025-02-21 00:00:32 -08:00
|
|
|
data = scenario_resources
|
2019-02-22 17:07:49 +01:00
|
|
|
if (is_ios) {
|
2025-02-21 00:00:32 -08:00
|
|
|
deps += [ ":scenario_resources_bundle_data" ]
|
2019-02-22 17:07:49 +01:00
|
|
|
}
|
2018-09-27 13:47:01 +02:00
|
|
|
}
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("scenario_unittests") {
|
2018-09-27 13:47:01 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2019-10-09 10:37:09 +02:00
|
|
|
"performance_stats_unittest.cc",
|
2020-10-06 21:51:21 +02:00
|
|
|
"probing_test.cc",
|
2018-09-27 13:47:01 +02:00
|
|
|
"scenario_unittest.cc",
|
2019-04-09 14:18:09 +02:00
|
|
|
"stats_collection_unittest.cc",
|
2019-02-20 11:16:19 +01:00
|
|
|
"video_stream_unittest.cc",
|
2018-09-27 13:47:01 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":scenario",
|
2021-01-14 09:50:32 +00:00
|
|
|
"../../api/test/network_emulation",
|
|
|
|
|
"../../api/test/network_emulation:create_cross_traffic",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../logging:mocks",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../system_wrappers",
|
2018-10-30 21:12:42 +01:00
|
|
|
"../../system_wrappers:field_trial",
|
2018-09-27 13:47:01 +02:00
|
|
|
"../../test:field_trial",
|
|
|
|
|
"../../test:test_support",
|
2019-05-22 16:20:56 +02:00
|
|
|
"../logging:log_writer",
|
2018-09-27 13:47:01 +02:00
|
|
|
"//testing/gmock",
|
|
|
|
|
]
|
2025-02-21 00:00:32 -08:00
|
|
|
data = scenario_unittest_resources
|
2019-02-22 17:07:49 +01:00
|
|
|
if (is_ios) {
|
2025-02-21 00:00:32 -08:00
|
|
|
deps += [ ":scenario_unittest_resources_bundle_data" ]
|
2019-02-22 17:07:49 +01:00
|
|
|
}
|
2018-09-27 13:47:01 +02:00
|
|
|
}
|
|
|
|
|
}
|