Make video_replay buildable from Chromium.
Bug: chromium:942546 Change-Id: Ic127e74b75ccb1fa65b317711d20344d0caee5fb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168280 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30467}
This commit is contained in:

committed by
Commit Bot

parent
ef0d76ae83
commit
a9e1026304
@ -318,44 +318,7 @@ rtc_source_set("test_support") {
|
||||
]
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_library("test_main_lib") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
"test_main_lib.cc",
|
||||
"test_main_lib.h",
|
||||
]
|
||||
|
||||
deps = [
|
||||
":field_trial",
|
||||
":perf_test",
|
||||
":resources_dir_flag",
|
||||
":test_support",
|
||||
"../rtc_base",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base:logging",
|
||||
"../rtc_base:rtc_base_approved",
|
||||
"../system_wrappers:field_trial",
|
||||
"../system_wrappers:metrics",
|
||||
"//third_party/abseil-cpp/absl/flags:flag",
|
||||
"//third_party/abseil-cpp/absl/flags:parse",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_library("test_main") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [ "test_main.cc" ]
|
||||
|
||||
deps = [
|
||||
":test_main_lib",
|
||||
"//third_party/abseil-cpp/absl/debugging:failure_signal_handler",
|
||||
"//third_party/abseil-cpp/absl/debugging:symbolize",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_library("video_test_support") {
|
||||
rtc_library("video_test_support") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
@ -407,6 +370,43 @@ if (rtc_include_tests) {
|
||||
if (is_android) {
|
||||
deps += [ "//base" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_library("test_main_lib") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [
|
||||
"test_main_lib.cc",
|
||||
"test_main_lib.h",
|
||||
]
|
||||
|
||||
deps = [
|
||||
":field_trial",
|
||||
":perf_test",
|
||||
":resources_dir_flag",
|
||||
":test_support",
|
||||
"../rtc_base",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base:logging",
|
||||
"../rtc_base:rtc_base_approved",
|
||||
"../system_wrappers:field_trial",
|
||||
"../system_wrappers:metrics",
|
||||
"//third_party/abseil-cpp/absl/flags:flag",
|
||||
"//third_party/abseil-cpp/absl/flags:parse",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_library("test_main") {
|
||||
visibility = [ "*" ]
|
||||
testonly = true
|
||||
sources = [ "test_main.cc" ]
|
||||
|
||||
deps = [
|
||||
":test_main_lib",
|
||||
"//third_party/abseil-cpp/absl/debugging:failure_signal_handler",
|
||||
"//third_party/abseil-cpp/absl/debugging:symbolize",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_library("test_support_test_artifacts") {
|
||||
|
@ -239,6 +239,51 @@ rtc_library("video_stream_encoder_impl") {
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_component_build) {
|
||||
# This target can be built from Chromium but it doesn't support
|
||||
# is_component_build=true because it depends on WebRTC testonly code
|
||||
# which is not part of //third_party/webrtc_overrides:webrtc_component.
|
||||
rtc_executable("video_replay") {
|
||||
testonly = true
|
||||
sources = [ "video_replay.cc" ]
|
||||
deps = [
|
||||
"../api/rtc_event_log",
|
||||
"../api/task_queue:default_task_queue_factory",
|
||||
"../api/test/video:function_video_factory",
|
||||
"../api/transport:field_trial_based_config",
|
||||
"../api/video_codecs:video_codecs_api",
|
||||
"../call",
|
||||
"../call:call_interfaces",
|
||||
"../common_video",
|
||||
"../media:rtc_internal_video_codecs",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base:rtc_json",
|
||||
"../rtc_base:stringutils",
|
||||
"../rtc_base:timeutils",
|
||||
"../system_wrappers",
|
||||
"../test:call_config_utils",
|
||||
"../test:encoder_settings",
|
||||
"../test:fake_video_codecs",
|
||||
"../test:null_transport",
|
||||
"../test:rtp_test_utils",
|
||||
"../test:run_test",
|
||||
"../test:run_test_interface",
|
||||
"../test:test_common",
|
||||
"../test:test_renderer",
|
||||
"../test:test_support",
|
||||
"../test:video_test_common",
|
||||
"../test:video_test_support",
|
||||
"//third_party/abseil-cpp/absl/flags:flag",
|
||||
"//third_party/abseil-cpp/absl/flags:parse",
|
||||
]
|
||||
if (build_with_chromium) {
|
||||
# When building from Chromium, WebRTC's metrics and field trial
|
||||
# implementations need to be replaced by the Chromium ones.
|
||||
deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_library("video_mocks") {
|
||||
testonly = true
|
||||
@ -467,41 +512,6 @@ if (rtc_include_tests) {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_executable("video_replay") {
|
||||
testonly = true
|
||||
sources = [ "video_replay.cc" ]
|
||||
deps = [
|
||||
"../api/rtc_event_log",
|
||||
"../api/task_queue:default_task_queue_factory",
|
||||
"../api/test/video:function_video_factory",
|
||||
"../api/transport:field_trial_based_config",
|
||||
"../api/video_codecs:video_codecs_api",
|
||||
"../call",
|
||||
"../call:call_interfaces",
|
||||
"../common_video",
|
||||
"../media:rtc_internal_video_codecs",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base:rtc_json",
|
||||
"../rtc_base:stringutils",
|
||||
"../rtc_base:timeutils",
|
||||
"../system_wrappers",
|
||||
"../test:call_config_utils",
|
||||
"../test:encoder_settings",
|
||||
"../test:fake_video_codecs",
|
||||
"../test:null_transport",
|
||||
"../test:rtp_test_utils",
|
||||
"../test:run_test",
|
||||
"../test:run_test_interface",
|
||||
"../test:test_common",
|
||||
"../test:test_renderer",
|
||||
"../test:test_support",
|
||||
"../test:video_test_common",
|
||||
"../test:video_test_support",
|
||||
"//third_party/abseil-cpp/absl/flags:flag",
|
||||
"//third_party/abseil-cpp/absl/flags:parse",
|
||||
]
|
||||
}
|
||||
|
||||
# TODO(pbos): Rename test suite.
|
||||
rtc_library("video_tests") {
|
||||
testonly = true
|
||||
|
Reference in New Issue
Block a user