From a077c810a8979ed1a9eb7a4ea0ec2ac8f56b3b54 Mon Sep 17 00:00:00 2001 From: Artem Titov Date: Fri, 24 Mar 2023 18:11:16 +0100 Subject: [PATCH] Extract test_video_capturer and test_video_capturer_video_track_source Extract test_video_capturer and test_video_capturer_video_track_source into a separate targets. Bug: b/272350185 Change-Id: Iaeefdb58de94d3a25291bfd09c39b3277c18e18a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/299060 Reviewed-by: Mirko Bonadei Commit-Queue: Artem Titov Cr-Commit-Position: refs/heads/main@{#39672} --- test/BUILD.gn | 16 ++++++++++++++++ test/pc/e2e/BUILD.gn | 11 +++++++++++ 2 files changed, 27 insertions(+) diff --git a/test/BUILD.gn b/test/BUILD.gn index a7cd3427d6..68ae709ad5 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -22,6 +22,7 @@ if (!build_with_chromium) { ":test_common", ":test_renderer", ":test_support", + ":test_video_capturer", ":video_test_common", ] @@ -110,6 +111,21 @@ rtc_library("frame_utils") { ] } +rtc_library("test_video_capturer") { + testonly = true + sources = [ + "test_video_capturer.cc", + "test_video_capturer.h", + ] + deps = [ + "../api:scoped_refptr", + "../api/video:video_frame", + "../api/video:video_rtp_headers", + "../media:rtc_media_base", + "../rtc_base/synchronization:mutex", + ] +} + rtc_library("video_test_common") { visibility = [ "*" ] testonly = true diff --git a/test/pc/e2e/BUILD.gn b/test/pc/e2e/BUILD.gn index 635b917ba0..3920db075c 100644 --- a/test/pc/e2e/BUILD.gn +++ b/test/pc/e2e/BUILD.gn @@ -121,6 +121,17 @@ if (!build_with_chromium) { ] } + rtc_library("test_video_capturer_video_track_source") { + testonly = true + sources = [ "media/test_video_capturer_video_track_source.h" ] + deps = [ + "../..:test_video_capturer", + "../../../api:sequence_checker", + "../../../api/test/video:test_video_track_source", + "../../../api/video:video_frame", + ] + } + rtc_library("media_helper") { testonly = true sources = [