2014-09-30 18:05:02 +00:00
|
|
|
# Copyright (c) 2014 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.
|
|
|
|
|
|
2016-06-01 04:48:26 -07:00
|
|
|
import("//build/config/ui.gni")
|
2018-11-22 20:10:11 -05:00
|
|
|
import("../webrtc.gni")
|
2016-06-01 04:48:26 -07:00
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
2014-09-30 18:05:02 +00:00
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
group("test") {
|
2014-09-30 18:05:02 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
deps = [
|
2019-01-15 14:43:20 +01:00
|
|
|
":copy_to_file_audio_capturer",
|
2016-06-01 04:48:26 -07:00
|
|
|
":rtp_test_utils",
|
|
|
|
|
":test_common",
|
|
|
|
|
":test_renderer",
|
2014-09-30 18:05:02 +00:00
|
|
|
":test_support",
|
2016-06-01 04:48:26 -07:00
|
|
|
":video_test_common",
|
|
|
|
|
]
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
|
2017-09-25 08:34:41 -07:00
|
|
|
if (rtc_include_tests) {
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
deps += [
|
|
|
|
|
":test_main",
|
|
|
|
|
":test_support_unittests",
|
2020-06-11 11:25:32 +02:00
|
|
|
"pc/e2e",
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
]
|
|
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2019-12-05 15:59:00 +01:00
|
|
|
rtc_library("frame_generator_impl") {
|
|
|
|
|
visibility = [
|
|
|
|
|
"../api:create_frame_generator",
|
|
|
|
|
":*",
|
|
|
|
|
]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"frame_generator.cc",
|
|
|
|
|
"frame_generator.h",
|
|
|
|
|
"testsupport/ivf_video_frame_generator.cc",
|
|
|
|
|
"testsupport/ivf_video_frame_generator.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":frame_utils",
|
|
|
|
|
"../api:frame_generator_api",
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/video:encoded_image",
|
|
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i010",
|
|
|
|
|
"../api/video:video_frame_i420",
|
|
|
|
|
"../api/video:video_rtp_headers",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../media:rtc_media_base",
|
|
|
|
|
"../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",
|
|
|
|
|
"../rtc_base",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:criticalsection",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_event",
|
|
|
|
|
"../rtc_base/synchronization:sequence_checker",
|
|
|
|
|
"../rtc_base/system:file_wrapper",
|
|
|
|
|
"../system_wrappers",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2019-12-05 15:59:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("frame_utils") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"frame_utils.cc",
|
|
|
|
|
"frame_utils.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_test_common") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"fake_texture_frame.cc",
|
|
|
|
|
"fake_texture_frame.h",
|
2019-12-05 15:59:00 +01:00
|
|
|
"frame_forwarder.cc",
|
|
|
|
|
"frame_forwarder.h",
|
2017-02-06 02:21:11 -08:00
|
|
|
"frame_generator_capturer.cc",
|
|
|
|
|
"frame_generator_capturer.h",
|
2018-08-13 14:24:58 +02:00
|
|
|
"test_video_capturer.cc",
|
|
|
|
|
"test_video_capturer.h",
|
2017-08-10 02:43:14 -07:00
|
|
|
"video_codec_settings.h",
|
2016-06-01 04:48:26 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2019-07-31 17:30:03 +02:00
|
|
|
":fileutils",
|
2019-12-05 15:59:00 +01:00
|
|
|
":frame_utils",
|
|
|
|
|
"../api:create_frame_generator",
|
2019-12-04 12:37:13 +01:00
|
|
|
"../api:frame_generator_api",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2019-02-28 13:30:04 +01:00
|
|
|
"../api/task_queue",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2018-07-13 17:10:00 -07:00
|
|
|
"../api/video:video_frame_i010",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2017-08-10 02:43:14 -07:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2016-06-01 04:48:26 -07:00
|
|
|
"../common_video",
|
Reland of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #1 id:1 of https://codereview.webrtc.org/2783183003/ )
Reason for revert:
Seem to be a flaky test rather than an issue with this cl. Creating reland, will add code to reduce flakiness to that test.
Original issue's description:
> Revert of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #8 id:410001 of https://codereview.webrtc.org/2781433002/ )
>
> Reason for revert:
> This has resulted in failure of CallPerfTest.ReceivesCpuOveruseAndUnderuse test on the Win7 build bot https://build.chromium.org/p/client.webrtc.perf/builders/Win7/builds/1780
>
> Original issue's description:
> > Reland of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #1 id:1 of https://codereview.webrtc.org/2764133002/ )
> >
> > Reason for revert:
> > Found issue with test case, will add fix to reland cl.
> >
> > Original issue's description:
> > > Revert of Add framerate to VideoSinkWants and ability to signal on overuse (patchset #14 id:250001 of https://codereview.webrtc.org/2716643002/ )
> > >
> > > Reason for revert:
> > > Breaks perf tests:
> > > https://build.chromium.org/p/client.webrtc.perf/builders/Win7/builds/1679
> > > https://build.chromium.org/p/client.webrtc.perf/builders/Android32%20Tests%20%28L%20Nexus5%29/builds/2325
> > >
> > > Original issue's description:
> > > > Add framerate to VideoSinkWants and ability to signal on overuse
> > > >
> > > > In ViEEncoder, try to reduce framerate instead of resolution if the
> > > > current degradation preference is maintain-resolution rather than
> > > > balanced.
> > > >
> > > > BUG=webrtc:4172
> > > >
> > > > Review-Url: https://codereview.webrtc.org/2716643002
> > > > Cr-Commit-Position: refs/heads/master@{#17327}
> > > > Committed: https://chromium.googlesource.com/external/webrtc/+/72acf2526177bb4dbb5103cd6e165eb4361a5ae6
> > >
> > > TBR=nisse@webrtc.org,magjed@webrtc.org,kthelgason@webrtc.org,ilnik@webrtc.org,stefan@webrtc.org,sprang@webrtc.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:4172
> > >
> > > Review-Url: https://codereview.webrtc.org/2764133002
> > > Cr-Commit-Position: refs/heads/master@{#17331}
> > > Committed: https://chromium.googlesource.com/external/webrtc/+/8b45b11144c968b4173215c76f78c710c9a2ed0b
> >
> > TBR=nisse@webrtc.org,magjed@webrtc.org,kthelgason@webrtc.org,ilnik@webrtc.org,stefan@webrtc.org,skvlad@webrtc.org
> > # Not skipping CQ checks because original CL landed more than 1 days ago.
> > BUG=webrtc:4172
> >
> > Review-Url: https://codereview.webrtc.org/2781433002
> > Cr-Commit-Position: refs/heads/master@{#17474}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/3ea3c77e93121b1ab9d5e46641e6764f2cca0d51
>
> TBR=ilnik@webrtc.org,stefan@webrtc.org,asapersson@webrtc.org,sprang@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4172
>
> Review-Url: https://codereview.webrtc.org/2783183003
> Cr-Commit-Position: refs/heads/master@{#17477}
> Committed: https://chromium.googlesource.com/external/webrtc/+/f9ed235c9b7248694edcb46feb1f29ce7456ab59
R=ilnik@webrtc.org,stefan@webrtc.org
BUG=webrtc:4172
Review-Url: https://codereview.webrtc.org/2789823002
Cr-Commit-Position: refs/heads/master@{#17498}
2017-04-02 23:53:04 -07:00
|
|
|
"../media:rtc_media_base",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:criticalsection",
|
|
|
|
|
"../rtc_base:logging",
|
|
|
|
|
"../rtc_base:refcount",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:timeutils",
|
2019-01-18 10:30:54 +01:00
|
|
|
"../rtc_base/task_utils:repeating_task",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../system_wrappers",
|
2016-06-01 04:48:26 -07:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2019-03-06 10:34:09 +01:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
if (is_mac || is_ios) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_test_mac") {
|
2019-03-06 10:34:09 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"mac_capturer.h",
|
|
|
|
|
"mac_capturer.mm",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_test_common",
|
|
|
|
|
"../api:libjingle_peerconnection_api",
|
2019-09-17 14:30:41 +02:00
|
|
|
"../api:media_stream_interface",
|
2019-03-06 10:34:09 +01:00
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../modules/video_capture:video_capture_module",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2019-03-06 10:34:09 +01:00
|
|
|
"../sdk:base_objc",
|
|
|
|
|
"../sdk:native_api",
|
|
|
|
|
"../sdk:native_video",
|
|
|
|
|
"../sdk:videocapture_objc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("platform_video_capturer") {
|
2019-03-06 10:34:09 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"platform_video_capturer.cc",
|
|
|
|
|
"platform_video_capturer.h",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
deps = [ ":video_test_common" ]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
|
2019-03-06 10:34:09 +01:00
|
|
|
if (is_mac || is_ios) {
|
|
|
|
|
deps += [ ":video_test_mac" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [
|
|
|
|
|
"vcm_capturer.cc",
|
|
|
|
|
"vcm_capturer.h",
|
|
|
|
|
]
|
|
|
|
|
deps += [
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../modules/video_capture:video_capture_module",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:logging",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtp_test_utils") {
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"rtcp_packet_parser.cc",
|
|
|
|
|
"rtcp_packet_parser.h",
|
|
|
|
|
"rtp_file_reader.cc",
|
|
|
|
|
"rtp_file_reader.h",
|
|
|
|
|
"rtp_file_writer.cc",
|
|
|
|
|
"rtp_file_writer.h",
|
2019-08-29 16:39:05 +02:00
|
|
|
"rtp_header_parser.cc",
|
|
|
|
|
"rtp_header_parser.h",
|
2016-06-01 04:48:26 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-09-04 05:43:17 -07:00
|
|
|
"../api:array_view",
|
2019-08-29 16:39:05 +02:00
|
|
|
"../api:rtp_parameters",
|
2016-06-01 04:48:26 -07:00
|
|
|
"../modules/rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:criticalsection",
|
|
|
|
|
"../rtc_base:logging",
|
|
|
|
|
"../rtc_base:macromagic",
|
2018-07-25 16:05:48 +02:00
|
|
|
"../rtc_base/system:arch",
|
2014-09-30 18:05:02 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("field_trial") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
2014-09-30 18:05:02 +00:00
|
|
|
sources = [
|
|
|
|
|
"field_trial.cc",
|
|
|
|
|
"field_trial.h",
|
|
|
|
|
]
|
|
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "../system_wrappers:field_trial" ]
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
2020-06-17 11:55:55 +02:00
|
|
|
rtc_library("explicit_key_value_config") {
|
|
|
|
|
sources = [
|
|
|
|
|
"explicit_key_value_config.cc",
|
|
|
|
|
"explicit_key_value_config.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../api/transport:webrtc_key_value_config",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings:strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("perf_test") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2020-01-13 15:10:40 +01:00
|
|
|
testonly = true
|
2018-01-05 15:34:09 +01:00
|
|
|
sources = [
|
2020-02-24 13:16:03 +01:00
|
|
|
"testsupport/perf_result_reporter.cc",
|
|
|
|
|
"testsupport/perf_result_reporter.h",
|
2018-01-05 15:34:09 +01:00
|
|
|
"testsupport/perf_test.cc",
|
|
|
|
|
"testsupport/perf_test.h",
|
2020-01-13 15:10:40 +01:00
|
|
|
"testsupport/perf_test_histogram_writer.h",
|
|
|
|
|
"testsupport/perf_test_result_writer.h",
|
2018-01-05 15:34:09 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:array_view",
|
2018-10-03 13:53:44 +02:00
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:criticalsection",
|
2020-01-31 11:22:42 +01:00
|
|
|
"../rtc_base:logging",
|
2019-09-12 20:30:54 +02:00
|
|
|
"../rtc_base:rtc_numerics",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
2020-06-11 11:25:32 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2020-01-31 11:22:42 +01:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
sources += [ "testsupport/perf_test_histogram_writer.cc" ]
|
|
|
|
|
deps += [
|
|
|
|
|
"//third_party/catapult/tracing/tracing:histogram",
|
|
|
|
|
"//third_party/catapult/tracing/tracing:reserved_infos",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [ "testsupport/perf_test_histogram_writer_no_protobuf.cc" ]
|
|
|
|
|
}
|
2018-01-05 15:34:09 +01:00
|
|
|
}
|
|
|
|
|
|
2017-08-23 23:55:54 -07:00
|
|
|
if (is_ios) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_support_objc") {
|
2017-08-23 23:55:54 -07:00
|
|
|
testonly = true
|
2017-09-05 05:11:41 -07:00
|
|
|
visibility = [ ":test_support" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
sources = [
|
2018-11-06 12:29:29 +01:00
|
|
|
"ios/coverage_util_ios.h",
|
|
|
|
|
"ios/coverage_util_ios.mm",
|
2017-08-23 23:55:54 -07:00
|
|
|
"ios/test_support.h",
|
|
|
|
|
"ios/test_support.mm",
|
|
|
|
|
]
|
2017-09-11 06:43:28 -07:00
|
|
|
deps = [
|
2018-01-05 15:34:09 +01:00
|
|
|
":perf_test",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:helpers_objc",
|
2017-09-11 06:43:28 -07:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2018-11-06 12:29:29 +01:00
|
|
|
configs += [ ":test_support_objc_config" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("test_support_objc_config") {
|
|
|
|
|
defines = []
|
|
|
|
|
|
|
|
|
|
if (use_clang_coverage) {
|
|
|
|
|
defines += [ "WEBRTC_IOS_ENABLE_COVERAGE" ]
|
|
|
|
|
}
|
2017-08-23 23:55:54 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-19 09:11:07 +01:00
|
|
|
config("suppress_warning_4373") {
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# MSVC has a bug which generates this warning when using mocks; see the
|
|
|
|
|
# section on warning 4373 in he googlemock FAQ. This warning isn't the
|
|
|
|
|
# least relevant for us, anyway.
|
|
|
|
|
"/wd4373",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-23 14:44:05 +02:00
|
|
|
config("test_main_direct_config") {
|
|
|
|
|
visibility = [ ":*" ]
|
|
|
|
|
defines = [ "UNIT_TEST" ]
|
|
|
|
|
}
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
rtc_source_set("test_support") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
testonly = true
|
|
|
|
|
|
2018-01-26 11:57:47 +01:00
|
|
|
all_dependent_configs = [
|
|
|
|
|
":suppress_warning_4373",
|
|
|
|
|
"//third_party/googletest:gmock_config",
|
|
|
|
|
"//third_party/googletest:gtest_config",
|
|
|
|
|
]
|
2018-01-19 09:11:07 +01:00
|
|
|
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
sources = [
|
|
|
|
|
"gmock.h",
|
|
|
|
|
"gtest.h",
|
|
|
|
|
]
|
|
|
|
|
|
2019-03-06 10:34:09 +01:00
|
|
|
public_deps = [] # no-presubmit-check TODO(webrtc:8603)
|
2017-06-09 10:31:58 +02:00
|
|
|
if (is_ios) {
|
2020-01-30 11:32:33 +01:00
|
|
|
public_deps += # no-presubmit-check TODO(webrtc:8603)
|
|
|
|
|
[ ":test_support_objc" ]
|
2017-06-09 10:31:58 +02:00
|
|
|
}
|
|
|
|
|
|
2018-08-23 14:44:05 +02:00
|
|
|
public_configs = [ ":test_main_direct_config" ]
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
deps = [
|
2019-10-19 12:03:23 +02:00
|
|
|
"../rtc_base:ignore_wundef",
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2020-02-06 10:35:58 +01:00
|
|
|
rtc_library("video_test_support") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/frame_reader.h",
|
|
|
|
|
"testsupport/frame_writer.h",
|
|
|
|
|
"testsupport/mock/mock_frame_reader.h",
|
|
|
|
|
"testsupport/video_frame_writer.cc",
|
|
|
|
|
"testsupport/video_frame_writer.h",
|
|
|
|
|
"testsupport/y4m_frame_reader.cc",
|
|
|
|
|
"testsupport/y4m_frame_writer.cc",
|
|
|
|
|
"testsupport/yuv_frame_reader.cc",
|
|
|
|
|
"testsupport/yuv_frame_writer.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":fileutils",
|
|
|
|
|
":frame_utils",
|
|
|
|
|
":test_support",
|
|
|
|
|
":video_test_common",
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/video:encoded_image",
|
|
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../media:rtc_media_base",
|
|
|
|
|
"../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",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:criticalsection",
|
|
|
|
|
"../rtc_base:logging",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_event",
|
|
|
|
|
"../rtc_base/synchronization:sequence_checker",
|
|
|
|
|
"../rtc_base/system:file_wrapper",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2020-02-06 10:35:58 +01:00
|
|
|
|
|
|
|
|
if (!is_ios) {
|
|
|
|
|
deps += [ "//third_party:jpeg" ]
|
|
|
|
|
sources += [ "testsupport/jpeg_frame_writer.cc" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [ "testsupport/jpeg_frame_writer_ios.cc" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//base" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-25 08:34:41 -07:00
|
|
|
if (rtc_include_tests) {
|
2020-06-11 11:25:32 +02:00
|
|
|
rtc_library("resources_dir_flag") {
|
|
|
|
|
testonly = true
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/resources_dir_flag.cc",
|
|
|
|
|
"testsupport/resources_dir_flag.h",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/flags:flag" ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_main_lib") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-09-25 09:18:00 +00:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2018-10-15 15:25:34 +02:00
|
|
|
"test_main_lib.cc",
|
|
|
|
|
"test_main_lib.h",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
2016-12-05 06:42:45 -08:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
deps = [
|
|
|
|
|
":field_trial",
|
2018-01-05 15:34:09 +01:00
|
|
|
":perf_test",
|
2019-10-15 12:19:36 +02:00
|
|
|
":resources_dir_flag",
|
2018-10-15 15:25:34 +02:00
|
|
|
":test_support",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:logging",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"../system_wrappers:metrics",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2019-07-18 13:44:12 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2020-02-20 23:52:26 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2020-05-17 14:33:40 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings:strings",
|
2020-02-20 23:52:26 +01:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
|
|
|
|
}
|
2014-09-30 18:05:02 +00:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_main") {
|
2018-10-15 15:25:34 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "test_main.cc" ]
|
2018-10-15 15:25:34 +02:00
|
|
|
|
2020-06-05 14:30:41 +02:00
|
|
|
deps = [ ":test_main_lib" ]
|
|
|
|
|
absl_deps = [
|
2019-08-12 13:40:47 +02:00
|
|
|
"//third_party/abseil-cpp/absl/debugging:failure_signal_handler",
|
|
|
|
|
"//third_party/abseil-cpp/absl/debugging:symbolize",
|
2018-10-15 15:25:34 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-04 00:41:20 +02:00
|
|
|
rtc_library("benchmark_main") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "benchmark_main.cc" ]
|
|
|
|
|
|
|
|
|
|
deps = [ "//third_party/google_benchmark" ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_support_test_artifacts") {
|
2017-09-25 09:18:00 +00:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2017-09-27 14:46:24 +02:00
|
|
|
"testsupport/test_artifacts.cc",
|
|
|
|
|
"testsupport/test_artifacts.h",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":fileutils",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:logging",
|
2019-02-08 16:40:53 +01:00
|
|
|
"../rtc_base/system:file_wrapper",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2019-07-18 13:44:12 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
}
|
2014-09-30 18:05:02 +00:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
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",
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
]
|
2016-06-14 12:52:54 +02:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
if (is_ios) {
|
|
|
|
|
bundle_data("test_support_unittests_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = test_support_unittests_resources
|
2020-01-21 12:10:10 +01:00
|
|
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
2017-09-25 09:18:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
2016-11-23 12:58:35 -08:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
rtc_test("test_support_unittests") {
|
|
|
|
|
deps = [
|
2019-01-14 15:30:20 -08:00
|
|
|
":call_config_utils",
|
2019-11-27 13:28:47 +01:00
|
|
|
":copy_to_file_audio_capturer_unittest",
|
2018-04-24 14:41:22 +02:00
|
|
|
":direct_transport",
|
2018-08-27 14:12:27 +02:00
|
|
|
":fake_video_codecs",
|
2018-03-15 15:05:39 +01:00
|
|
|
":fileutils",
|
2019-11-27 13:28:47 +01:00
|
|
|
":fileutils_unittests",
|
2019-12-05 15:59:00 +01:00
|
|
|
":frame_generator_impl",
|
2018-01-05 15:34:09 +01:00
|
|
|
":perf_test",
|
2019-11-28 17:09:30 +01:00
|
|
|
":rtc_expect_death",
|
2017-09-25 09:18:00 +00:00
|
|
|
":rtp_test_utils",
|
2020-05-04 16:43:05 +02:00
|
|
|
":test_common",
|
2018-04-06 10:48:10 +02:00
|
|
|
":test_main",
|
|
|
|
|
":test_support",
|
|
|
|
|
":test_support_test_artifacts",
|
|
|
|
|
":video_test_common",
|
|
|
|
|
":video_test_support",
|
2019-12-05 15:59:00 +01:00
|
|
|
"../api:create_frame_generator",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../api:create_simulcast_test_fixture_api",
|
2019-12-05 15:59:00 +01:00
|
|
|
"../api:frame_generator_api",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../api:simulcast_test_fixture_api",
|
2019-11-27 13:28:47 +01:00
|
|
|
"../api/task_queue:task_queue_test",
|
2018-10-26 15:57:48 +02:00
|
|
|
"../api/test/video:function_video_factory",
|
2019-11-25 23:19:42 +01:00
|
|
|
"../api/video:encoded_image",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_frame",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2019-11-25 23:19:42 +01:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2019-01-14 15:30:20 -08:00
|
|
|
"../call:video_stream_api",
|
2019-11-25 23:19:42 +01:00
|
|
|
"../common_video",
|
|
|
|
|
"../media:rtc_media_base",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../modules/rtp_rtcp",
|
2019-11-25 23:19:42 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../modules/video_coding:simulcast_test_fixture_impl",
|
2019-11-25 23:19:42 +01:00
|
|
|
"../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",
|
|
|
|
|
"../rtc_base:criticalsection",
|
|
|
|
|
"../rtc_base:rtc_event",
|
2020-05-04 16:43:05 +02:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2019-02-08 16:40:53 +01:00
|
|
|
"../rtc_base/system:file_wrapper",
|
2020-05-04 16:43:05 +02:00
|
|
|
"../rtc_base/task_utils:to_queued_task",
|
2019-11-27 13:28:47 +01:00
|
|
|
"pc/e2e:e2e_unittests",
|
|
|
|
|
"peer_scenario/tests",
|
|
|
|
|
"scenario:scenario_unittests",
|
2019-11-22 13:25:12 +01:00
|
|
|
"time_controller:time_controller",
|
2019-11-27 13:28:47 +01:00
|
|
|
"time_controller:time_controller_unittests",
|
2019-07-18 13:44:12 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
2019-01-14 14:21:59 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2019-11-25 23:19:42 +01:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
|
|
|
|
sources = [
|
2019-01-14 15:30:20 -08:00
|
|
|
"call_config_utils_unittest.cc",
|
2018-04-24 14:41:22 +02:00
|
|
|
"direct_transport_unittest.cc",
|
2018-08-27 14:12:27 +02:00
|
|
|
"fake_vp8_encoder_unittest.cc",
|
2019-07-31 17:30:03 +02:00
|
|
|
"frame_generator_capturer_unittest.cc",
|
2017-09-25 09:18:00 +00:00
|
|
|
"frame_generator_unittest.cc",
|
|
|
|
|
"rtp_file_reader_unittest.cc",
|
|
|
|
|
"rtp_file_writer_unittest.cc",
|
2020-05-04 16:43:05 +02:00
|
|
|
"run_loop_unittest.cc",
|
2019-11-25 23:19:42 +01:00
|
|
|
"testsupport/ivf_video_frame_generator_unittest.cc",
|
2017-09-25 09:18:00 +00:00
|
|
|
"testsupport/perf_test_unittest.cc",
|
2017-09-27 14:46:24 +02:00
|
|
|
"testsupport/test_artifacts_unittest.cc",
|
2019-01-17 21:37:19 +01:00
|
|
|
"testsupport/video_frame_writer_unittest.cc",
|
2019-01-14 14:21:59 +01:00
|
|
|
"testsupport/y4m_frame_reader_unittest.cc",
|
2017-09-25 09:18:00 +00:00
|
|
|
"testsupport/y4m_frame_writer_unittest.cc",
|
|
|
|
|
"testsupport/yuv_frame_reader_unittest.cc",
|
|
|
|
|
"testsupport/yuv_frame_writer_unittest.cc",
|
2017-04-27 12:29:29 -07:00
|
|
|
]
|
|
|
|
|
|
2020-01-31 11:22:42 +01:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
sources += [ "testsupport/perf_test_histogram_writer_unittest.cc" ]
|
|
|
|
|
deps += [ "//third_party/catapult/tracing/tracing:histogram" ]
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
data = test_support_unittests_resources
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
|
|
|
|
shard_timeout = 900
|
|
|
|
|
}
|
2017-04-27 12:29:29 -07:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":test_support_unittests_bundle_data" ]
|
|
|
|
|
}
|
2018-08-27 14:12:27 +02:00
|
|
|
|
2018-04-06 10:48:10 +02:00
|
|
|
if (!is_android && !build_with_chromium) {
|
|
|
|
|
# This is needed in order to avoid:
|
|
|
|
|
# undefined symbol: webrtc::videocapturemodule::VideoCaptureImpl::Create
|
|
|
|
|
deps += [ "../modules/video_capture:video_capture_internal_impl" ]
|
|
|
|
|
}
|
2017-01-09 01:40:03 -08:00
|
|
|
}
|
2017-04-27 12:29:29 -07:00
|
|
|
}
|
2017-01-09 01:40:03 -08:00
|
|
|
|
2017-08-23 23:55:54 -07:00
|
|
|
if (is_ios) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("fileutils_ios_objc") {
|
2018-10-23 15:50:10 +02:00
|
|
|
visibility = [
|
|
|
|
|
":fileutils",
|
|
|
|
|
":fileutils_override_impl",
|
|
|
|
|
]
|
2017-08-23 23:55:54 -07:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"testsupport/ios_file_utils.h",
|
|
|
|
|
"testsupport/ios_file_utils.mm",
|
2017-08-23 23:55:54 -07:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-08-23 23:55:54 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:helpers_objc",
|
2017-08-23 23:55:54 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-05 14:52:11 +02:00
|
|
|
if (is_mac) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("fileutils_mac_objc") {
|
2018-10-23 15:50:10 +02:00
|
|
|
visibility = [
|
|
|
|
|
":fileutils",
|
|
|
|
|
":fileutils_override_impl",
|
|
|
|
|
]
|
2018-10-05 14:52:11 +02:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"testsupport/mac_file_utils.h",
|
|
|
|
|
"testsupport/mac_file_utils.mm",
|
2018-10-05 14:52:11 +02:00
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "../rtc_base:checks" ]
|
2018-10-05 14:52:11 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("fileutils") {
|
2017-04-27 12:29:29 -07:00
|
|
|
testonly = true
|
2018-03-15 15:05:39 +01:00
|
|
|
visibility = [ "*" ]
|
2017-04-27 12:29:29 -07:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"testsupport/file_utils.cc",
|
|
|
|
|
"testsupport/file_utils.h",
|
2017-04-27 12:29:29 -07:00
|
|
|
]
|
2017-06-01 04:47:20 -07:00
|
|
|
deps = [
|
2018-10-23 15:50:10 +02:00
|
|
|
":fileutils_override_api",
|
|
|
|
|
":fileutils_override_impl",
|
|
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:stringutils",
|
2018-10-23 15:50:10 +02:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2018-10-23 15:50:10 +02:00
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":fileutils_ios_objc" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
deps += [ ":fileutils_mac_objc" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "../rtc_base" ]
|
2018-10-23 15:50:10 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# We separate header into own target to make it possible for downstream
|
|
|
|
|
# projects to override implementation.
|
|
|
|
|
rtc_source_set("fileutils_override_api") {
|
|
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "testsupport/file_utils_override.h" ]
|
2018-10-23 15:50:10 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("fileutils_override_impl") {
|
2018-10-23 15:50:10 +02:00
|
|
|
testonly = true
|
|
|
|
|
visibility = [ ":fileutils" ]
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "testsupport/file_utils_override.cc" ]
|
2018-10-23 15:50:10 +02:00
|
|
|
deps = [
|
|
|
|
|
":fileutils_override_api",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:macromagic",
|
|
|
|
|
"../rtc_base:stringutils",
|
2017-06-01 04:47:20 -07:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2017-04-27 12:29:29 -07:00
|
|
|
if (is_ios) {
|
2018-10-05 14:52:11 +02:00
|
|
|
deps += [ ":fileutils_ios_objc" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
deps += [ ":fileutils_mac_objc" ]
|
2017-06-01 04:47:20 -07:00
|
|
|
}
|
|
|
|
|
if (is_win) {
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "../rtc_base" ]
|
2016-11-23 12:58:35 -08:00
|
|
|
}
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
2016-10-24 01:52:39 -07:00
|
|
|
rtc_source_set("run_test") {
|
|
|
|
|
testonly = true
|
2017-08-23 23:55:54 -07:00
|
|
|
if (is_mac) {
|
2020-01-21 12:10:10 +01:00
|
|
|
public_deps = [ ":run_test_objc" ] # no-presubmit-check TODO(webrtc:8603)
|
2017-08-23 23:55:54 -07:00
|
|
|
} else {
|
2020-01-30 11:32:33 +01:00
|
|
|
public_deps = # no-presubmit-check TODO(webrtc:8603)
|
|
|
|
|
[ ":run_test_generic" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("run_test_interface") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "run_test.h" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("run_test_objc") {
|
2017-08-23 23:55:54 -07:00
|
|
|
testonly = true
|
2017-09-05 05:11:41 -07:00
|
|
|
visibility = [ ":run_test" ]
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "mac/run_test.mm" ]
|
|
|
|
|
deps = [ ":run_test_interface" ]
|
2016-10-24 01:52:39 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("run_test_generic") {
|
2017-08-23 23:55:54 -07:00
|
|
|
testonly = true
|
2017-09-05 05:11:41 -07:00
|
|
|
visibility = [ ":run_test" ]
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "run_test.cc" ]
|
|
|
|
|
deps = [ ":run_test_interface" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("fileutils_unittests") {
|
2016-12-05 06:42:45 -08:00
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "testsupport/file_utils_unittest.cc" ]
|
2016-12-05 06:42:45 -08:00
|
|
|
deps = [
|
|
|
|
|
":fileutils",
|
2017-06-01 04:47:20 -07:00
|
|
|
":test_support",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2016-12-05 06:42:45 -08:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2016-12-05 06:42:45 -08:00
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("direct_transport") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-02-08 05:55:51 -08:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"direct_transport.cc",
|
|
|
|
|
"direct_transport.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-08-29 16:39:05 +02:00
|
|
|
":rtp_test_utils",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../api:simulated_network_api",
|
2017-02-08 05:55:51 -08:00
|
|
|
"../api:transport_api",
|
2019-09-27 11:10:45 +02:00
|
|
|
"../api/task_queue",
|
|
|
|
|
"../api/units:time_delta",
|
2017-12-04 10:50:51 +01:00
|
|
|
"../call:call_interfaces",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../call:simulated_packet_receiver",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:macromagic",
|
|
|
|
|
"../rtc_base:timeutils",
|
2019-04-09 13:44:04 +02:00
|
|
|
"../rtc_base/synchronization:sequence_checker",
|
2019-09-27 11:10:45 +02:00
|
|
|
"../rtc_base/task_utils:repeating_task",
|
2017-02-08 05:55:51 -08:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
|
2020-01-30 11:32:33 +01:00
|
|
|
public_deps = # no-presubmit-check TODO(webrtc:8603)
|
|
|
|
|
[ "../call:fake_network" ]
|
2017-08-22 04:02:52 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("fake_video_codecs") {
|
2019-01-16 15:07:56 -05:00
|
|
|
allow_poison = [ "software_video_codecs" ]
|
2018-08-27 14:12:27 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"configurable_frame_size_encoder.cc",
|
|
|
|
|
"configurable_frame_size_encoder.h",
|
|
|
|
|
"fake_decoder.cc",
|
|
|
|
|
"fake_decoder.h",
|
|
|
|
|
"fake_encoder.cc",
|
|
|
|
|
"fake_encoder.h",
|
2018-10-04 18:40:28 +02:00
|
|
|
"fake_vp8_decoder.cc",
|
|
|
|
|
"fake_vp8_decoder.h",
|
2018-08-27 14:12:27 +02:00
|
|
|
"fake_vp8_encoder.cc",
|
|
|
|
|
"fake_vp8_encoder.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-06-28 15:19:43 +02:00
|
|
|
"../api:fec_controller_api",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2019-03-11 14:26:02 +01:00
|
|
|
"../api/task_queue",
|
2018-10-05 14:17:58 +02:00
|
|
|
"../api/video:encoded_image",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_bitrate_allocation",
|
|
|
|
|
"../api/video:video_frame",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2019-03-20 11:56:20 +01:00
|
|
|
"../api/video_codecs:vp8_temporal_layers_factory",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../modules:module_api",
|
|
|
|
|
"../modules/video_coding:codec_globals_headers",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../modules/video_coding:video_codec_interface",
|
|
|
|
|
"../modules/video_coding:video_coding_utility",
|
|
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:criticalsection",
|
|
|
|
|
"../rtc_base:macromagic",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:timeutils",
|
2019-04-09 13:44:04 +02:00
|
|
|
"../rtc_base/synchronization:sequence_checker",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../system_wrappers",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2018-08-27 14:12:27 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("null_transport") {
|
2019-04-24 18:17:42 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"null_transport.cc",
|
|
|
|
|
"null_transport.h",
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "../api:transport_api" ]
|
2019-04-24 18:17:42 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("encoder_settings") {
|
2019-04-24 18:17:42 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"encoder_settings.cc",
|
|
|
|
|
"encoder_settings.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call:rtp_interfaces",
|
|
|
|
|
"../call:video_stream_api",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:refcount",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-28 17:09:30 +01:00
|
|
|
rtc_library("rtc_expect_death") {
|
|
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "testsupport/rtc_expect_death.h" ]
|
|
|
|
|
deps = [ ":test_support" ]
|
2019-11-28 17:09:30 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_common") {
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"call_test.cc",
|
|
|
|
|
"call_test.h",
|
|
|
|
|
"drifting_clock.cc",
|
|
|
|
|
"drifting_clock.h",
|
2016-09-30 06:19:08 -07:00
|
|
|
"fake_videorenderer.h",
|
2016-06-01 04:48:26 -07:00
|
|
|
"layer_filtering_transport.cc",
|
|
|
|
|
"layer_filtering_transport.h",
|
|
|
|
|
"rtp_rtcp_observer.h",
|
2020-05-04 16:43:05 +02:00
|
|
|
"run_loop.cc",
|
|
|
|
|
"run_loop.h",
|
2018-09-28 09:07:24 +02:00
|
|
|
"video_decoder_proxy_factory.h",
|
|
|
|
|
"video_encoder_proxy_factory.h",
|
2016-06-01 04:48:26 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-02-08 05:55:51 -08:00
|
|
|
":direct_transport",
|
2019-04-24 18:17:42 +02:00
|
|
|
":encoder_settings",
|
2018-08-27 14:12:27 +02:00
|
|
|
":fake_video_codecs",
|
2018-03-15 15:05:39 +01:00
|
|
|
":fileutils",
|
2020-02-20 11:53:13 -08:00
|
|
|
":mock_transport",
|
2016-06-01 04:48:26 -07:00
|
|
|
":rtp_test_utils",
|
|
|
|
|
":test_support",
|
2017-03-01 03:37:08 -08:00
|
|
|
":video_test_common",
|
2019-12-05 15:59:00 +01:00
|
|
|
"../api:create_frame_generator",
|
|
|
|
|
"../api:frame_generator_api",
|
2019-03-20 08:40:23 +01:00
|
|
|
"../api:rtp_headers",
|
2019-08-26 10:45:28 +02:00
|
|
|
"../api:rtp_parameters",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../api:simulated_network_api",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../api:transport_api",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
2017-05-02 06:46:30 -07:00
|
|
|
"../api/audio_codecs:builtin_audio_encoder_factory",
|
2019-08-07 12:24:53 +02:00
|
|
|
"../api/rtc_event_log",
|
2019-04-18 10:58:56 +02:00
|
|
|
"../api/task_queue",
|
|
|
|
|
"../api/task_queue:default_task_queue_factory",
|
2018-10-24 17:01:58 +02:00
|
|
|
"../api/test/video:function_video_factory",
|
2019-11-28 13:44:25 +01:00
|
|
|
"../api/transport:field_trial_based_config",
|
2018-11-08 10:02:56 -08:00
|
|
|
"../api/video:builtin_video_bitrate_allocator_factory",
|
|
|
|
|
"../api/video:video_bitrate_allocator_factory",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2017-04-05 03:02:20 -07:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2017-12-04 10:50:51 +01:00
|
|
|
"../call:call_interfaces",
|
2018-08-20 13:30:39 +02:00
|
|
|
"../call:fake_network",
|
|
|
|
|
"../call:simulated_network",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../call:simulated_packet_receiver",
|
2017-08-22 05:43:23 -07:00
|
|
|
"../call:video_stream_api",
|
2018-03-15 12:44:12 +01:00
|
|
|
"../modules/audio_device:audio_device_impl",
|
2016-11-17 06:48:48 -08:00
|
|
|
"../modules/audio_mixer:audio_mixer_impl",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../modules/rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_video_header",
|
|
|
|
|
"../modules/video_coding:codec_globals_headers",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:criticalsection",
|
2020-05-04 16:43:05 +02:00
|
|
|
"../rtc_base:rtc_base",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:rtc_event",
|
2019-10-21 09:24:27 +02:00
|
|
|
"../rtc_base:task_queue_for_test",
|
2020-05-04 16:43:05 +02:00
|
|
|
"../rtc_base/task_utils:to_queued_task",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
2016-06-01 04:48:26 -07:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
Reason for revert:
Fourth attempt to land.
Waiting for https://codereview.webrtc.org/2845013003 to
avoid conflicts on webrtc/modules/audio_coding:neteq_unittest_tools.
Original issue's description:
> Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
>
> Reason for revert:
> Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
>
> Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
>
> Original issue's description:
> > Enable GN check for webrtc/base
> >
> > It's not possible to enable it for the rtc_base_approved
> > target but since a larger refactoring is ongoing for webrtc/base
> > this CL doesn't attempt to fix that.
> >
> > Changes made:
> > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > webrtc/base:rtc_base_approved_unittests (and corresponding
> > unit test to rtc_base_approved_unittests).
> > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > webrtc/base.
> > * Remove unused use include of webrtc/base/fileutils.h in
> > webrtc/base/pathutils.cc
> >
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2717083002
> > Cr-Commit-Position: refs/heads/master@{#17766}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2838683002
> Cr-Commit-Position: refs/heads/master@{#17849}
> Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2852663002
Cr-Commit-Position: refs/heads/master@{#17927}
2017-04-28 05:24:50 -07:00
|
|
|
if (!is_android && !build_with_chromium) {
|
2017-03-23 03:40:03 -07:00
|
|
|
deps += [ "../modules/video_capture:video_capture_internal_impl" ]
|
|
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2020-02-20 11:53:13 -08:00
|
|
|
rtc_library("mock_transport") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"mock_transport.cc",
|
|
|
|
|
"mock_transport.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":test_support",
|
|
|
|
|
"../api:transport_api",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("test_renderer") {
|
2020-01-30 11:32:33 +01:00
|
|
|
public_deps = # no-presubmit-check TODO(webrtc:8603)
|
|
|
|
|
[ ":test_renderer_generic" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
2017-08-23 23:55:54 -07:00
|
|
|
if (is_mac) {
|
2020-01-30 11:32:33 +01:00
|
|
|
public_deps += # no-presubmit-check TODO(webrtc:8603)
|
|
|
|
|
[ ":test_renderer_objc" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-29 22:39:13 +02:00
|
|
|
rtc_library("mock_frame_transformer") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "mock_frame_transformer.h" ]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:frame_transformer_interface",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-04 16:03:03 +02:00
|
|
|
rtc_library("mock_transformable_frame") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "mock_transformable_frame.h" ]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:frame_transformer_interface",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-23 23:55:54 -07:00
|
|
|
if (is_mac) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_renderer_objc") {
|
2017-08-23 23:55:54 -07:00
|
|
|
testonly = true
|
2017-09-05 05:11:41 -07:00
|
|
|
visibility = [ ":test_renderer" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
sources = [
|
|
|
|
|
"mac/video_renderer_mac.h",
|
|
|
|
|
"mac/video_renderer_mac.mm",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-09-05 05:11:41 -07:00
|
|
|
":test_renderer_generic",
|
2017-08-23 23:55:54 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [
|
2017-08-23 23:55:54 -07:00
|
|
|
"Cocoa.framework",
|
|
|
|
|
"OpenGL.framework",
|
|
|
|
|
"CoreVideo.framework",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("test_renderer_generic") {
|
2017-08-23 23:55:54 -07:00
|
|
|
testonly = true
|
2017-09-05 05:11:41 -07:00
|
|
|
visibility = [
|
|
|
|
|
":test_renderer",
|
|
|
|
|
":test_renderer_objc",
|
|
|
|
|
]
|
2016-06-01 04:48:26 -07:00
|
|
|
libs = []
|
|
|
|
|
sources = [
|
|
|
|
|
"video_renderer.cc",
|
|
|
|
|
"video_renderer.h",
|
|
|
|
|
]
|
2017-08-23 23:55:54 -07:00
|
|
|
deps = [
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2017-08-23 23:55:54 -07:00
|
|
|
"../common_video",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-08-23 23:55:54 -07:00
|
|
|
]
|
2019-10-29 19:39:17 +01:00
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"win/d3d_renderer.cc",
|
|
|
|
|
"win/d3d_renderer.h",
|
|
|
|
|
]
|
2019-11-22 13:25:12 +01:00
|
|
|
deps += [ "../api:scoped_refptr" ]
|
2019-10-29 19:39:17 +01:00
|
|
|
}
|
2017-12-20 21:25:47 +01:00
|
|
|
if (!(is_linux && rtc_use_x11) && !is_mac && !is_win) {
|
2016-06-01 04:48:26 -07:00
|
|
|
sources += [ "null_platform_renderer.cc" ]
|
|
|
|
|
}
|
2017-12-20 21:25:47 +01:00
|
|
|
if ((is_linux && rtc_use_x11) || is_mac) {
|
2016-06-01 04:48:26 -07:00
|
|
|
sources += [
|
|
|
|
|
"gl/gl_renderer.cc",
|
|
|
|
|
"gl/gl_renderer.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-20 21:25:47 +01:00
|
|
|
if (is_linux && rtc_use_x11) {
|
2017-11-07 19:07:31 +01:00
|
|
|
sources += [
|
|
|
|
|
"linux/glx_renderer.cc",
|
|
|
|
|
"linux/glx_renderer.h",
|
|
|
|
|
"linux/video_renderer_linux.cc",
|
|
|
|
|
]
|
2016-06-01 04:48:26 -07:00
|
|
|
libs += [
|
|
|
|
|
"Xext",
|
|
|
|
|
"X11",
|
|
|
|
|
"GL",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_android) {
|
|
|
|
|
libs += [
|
|
|
|
|
"GLESv2",
|
|
|
|
|
"log",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-04-10 05:15:48 -07:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_codec_mocks") {
|
2017-04-10 05:15:48 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2018-12-19 15:06:17 +01:00
|
|
|
# TODO(nisse): Move these factories to their own target, to avoid
|
|
|
|
|
# unnecessary dependencies on gmock and gtest.
|
2018-12-06 13:07:11 +01:00
|
|
|
"audio_decoder_proxy_factory.h",
|
2018-11-30 10:45:12 +01:00
|
|
|
"function_audio_decoder_factory.h",
|
2017-06-14 03:31:17 -07:00
|
|
|
"mock_audio_decoder.cc",
|
2017-04-10 05:15:48 -07:00
|
|
|
"mock_audio_decoder.h",
|
|
|
|
|
"mock_audio_decoder_factory.h",
|
2017-05-02 06:46:30 -07:00
|
|
|
"mock_audio_encoder.cc",
|
|
|
|
|
"mock_audio_encoder.h",
|
|
|
|
|
"mock_audio_encoder_factory.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-06-01 04:47:20 -07:00
|
|
|
":test_support",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../api:array_view",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2017-05-02 06:46:30 -07:00
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
2018-11-30 10:45:12 +01:00
|
|
|
"../rtc_base:checks",
|
2019-11-22 13:25:12 +01:00
|
|
|
"../rtc_base:refcount",
|
2017-04-10 05:15:48 -07:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
|
2017-04-10 05:15:48 -07:00
|
|
|
}
|
2017-05-26 01:51:53 -07:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("copy_to_file_audio_capturer") {
|
2019-01-15 14:43:20 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/copy_to_file_audio_capturer.cc",
|
|
|
|
|
"testsupport/copy_to_file_audio_capturer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:array_view",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../common_audio",
|
2019-01-15 14:43:20 +01:00
|
|
|
"../modules/audio_device:audio_device_impl",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2019-01-15 14:43:20 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("copy_to_file_audio_capturer_unittest") {
|
2019-01-15 14:43:20 +01:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "testsupport/copy_to_file_audio_capturer_unittest.cc" ]
|
2019-01-15 14:43:20 +01:00
|
|
|
deps = [
|
|
|
|
|
":copy_to_file_audio_capturer",
|
|
|
|
|
":fileutils",
|
|
|
|
|
":test_support",
|
|
|
|
|
"../modules/audio_device:audio_device_impl",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-26 01:51:53 -07:00
|
|
|
if (!build_with_chromium && is_android) {
|
2017-11-07 15:36:33 +00:00
|
|
|
rtc_android_library("native_test_java") {
|
2017-05-26 01:51:53 -07:00
|
|
|
testonly = true
|
2019-12-23 14:02:25 -08:00
|
|
|
sources = [
|
2017-05-26 01:51:53 -07:00
|
|
|
"android/org/webrtc/native_test/RTCNativeUnitTest.java",
|
|
|
|
|
"android/org/webrtc/native_test/RTCNativeUnitTestActivity.java",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-07-11 06:20:45 -07:00
|
|
|
"../rtc_base:base_java",
|
2017-05-26 01:51:53 -07:00
|
|
|
"//testing/android/native_test:native_test_java",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-11 10:48:42 -08:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("call_config_utils") {
|
2019-07-15 13:17:48 +02:00
|
|
|
# TODO(bugs.webrtc.org/10814): Remove rtc_json_suppressions as soon as it
|
|
|
|
|
# gets removed upstream.
|
|
|
|
|
public_configs = [ "../rtc_base:rtc_json_suppressions" ]
|
2019-01-11 10:48:42 -08:00
|
|
|
sources = [
|
|
|
|
|
"call_config_utils.cc",
|
|
|
|
|
"call_config_utils.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../call:video_stream_api",
|
|
|
|
|
"../rtc_base:rtc_json",
|
|
|
|
|
]
|
|
|
|
|
}
|