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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../webrtc.gni")
|
2016-06-01 04:48:26 -07:00
|
|
|
import("//build/config/ui.gni")
|
|
|
|
|
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 = [
|
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",
|
2018-09-27 13:47:01 +02:00
|
|
|
"scenario/scenario_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
|
|
|
]
|
|
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("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",
|
|
|
|
|
"frame_generator.cc",
|
|
|
|
|
"frame_generator.h",
|
2017-02-06 02:21:11 -08:00
|
|
|
"frame_generator_capturer.cc",
|
|
|
|
|
"frame_generator_capturer.h",
|
2016-06-01 04:48:26 -07:00
|
|
|
"frame_utils.cc",
|
|
|
|
|
"frame_utils.h",
|
2018-08-13 14:24:58 +02:00
|
|
|
"test_video_capturer.cc",
|
|
|
|
|
"test_video_capturer.h",
|
2017-02-06 02:21:11 -08:00
|
|
|
"vcm_capturer.cc",
|
|
|
|
|
"vcm_capturer.h",
|
2017-08-10 02:43:14 -07:00
|
|
|
"video_codec_settings.h",
|
2016-06-01 04:48:26 -07:00
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-06-01 04:47:20 -07:00
|
|
|
"..:webrtc_common",
|
2018-01-04 15:58:20 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
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",
|
2017-08-10 02:43:14 -07:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2017-08-22 05:43:23 -07:00
|
|
|
"../call:video_stream_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",
|
2017-02-06 02:21:11 -08:00
|
|
|
"../modules/video_capture:video_capture_module",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-12-19 11:50:21 +01:00
|
|
|
"../rtc_base:rtc_base",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../system_wrappers",
|
2018-09-10 14:07:45 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-06-18 12:54:17 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2016-06-01 04:48:26 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("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",
|
|
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../api:array_view",
|
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",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-07-25 16:05:48 +02:00
|
|
|
"../rtc_base/system:arch",
|
2016-06-01 04:48:26 -07:00
|
|
|
"//testing/gtest",
|
2014-09-30 18:05:02 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("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",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2015-02-26 13:59:22 +00:00
|
|
|
"..:webrtc_common",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
2014-09-30 18:05:02 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-05 15:34:09 +01:00
|
|
|
rtc_source_set("perf_test") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2018-01-05 15:34:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"testsupport/perf_test.cc",
|
|
|
|
|
"testsupport/perf_test.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../api:array_view",
|
2018-10-03 13:53:44 +02:00
|
|
|
"../rtc_base:checks",
|
2018-01-05 15:34:09 +01:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-23 23:55:54 -07:00
|
|
|
if (is_ios) {
|
|
|
|
|
rtc_source_set("test_support_objc") {
|
|
|
|
|
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
|
|
|
]
|
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",
|
|
|
|
|
]
|
|
|
|
|
|
2018-03-15 15:05:39 +01:00
|
|
|
public_deps = []
|
2017-06-09 10:31:58 +02:00
|
|
|
if (is_ios) {
|
2017-08-23 23:55:54 -07:00
|
|
|
public_deps += [ ":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 = [
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
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",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2017-09-25 08:34:41 -07:00
|
|
|
if (rtc_include_tests) {
|
2018-10-15 15:25:34 +02:00
|
|
|
rtc_source_set("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",
|
2018-10-15 15:25:34 +02:00
|
|
|
":test_support",
|
2018-09-06 08:42:44 +02:00
|
|
|
"../rtc_base:rtc_base",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"../system_wrappers:metrics",
|
2017-09-25 09:18:00 +00:00
|
|
|
"//testing/gtest",
|
2018-10-30 21:12:42 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory:memory",
|
2018-10-09 15:09:51 +02:00
|
|
|
|
|
|
|
|
# TODO(bugs.webrtc.org/9792): This is needed for downstream projects on
|
|
|
|
|
# Android, where it's replaced by an internal version of fileutils that
|
|
|
|
|
# has a certain flag. Remove this once the internal fileutils has been
|
|
|
|
|
# eliminated.
|
|
|
|
|
"../test:fileutils",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
|
|
|
|
}
|
2014-09-30 18:05:02 +00:00
|
|
|
|
2018-10-15 15:25:34 +02:00
|
|
|
rtc_source_set("test_main") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test_main.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":test_main_lib",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
rtc_source_set("video_test_support") {
|
|
|
|
|
testonly = true
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
sources = [
|
|
|
|
|
"testsupport/frame_reader.h",
|
|
|
|
|
"testsupport/frame_writer.h",
|
|
|
|
|
"testsupport/mock/mock_frame_reader.h",
|
|
|
|
|
"testsupport/y4m_frame_writer.cc",
|
|
|
|
|
"testsupport/yuv_frame_reader.cc",
|
|
|
|
|
"testsupport/yuv_frame_writer.cc",
|
|
|
|
|
]
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
deps = [
|
2018-03-15 15:05:39 +01:00
|
|
|
":fileutils",
|
2017-09-25 09:18:00 +00:00
|
|
|
":test_support",
|
|
|
|
|
":video_test_common",
|
|
|
|
|
"..:webrtc_common",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
2017-09-25 09:18:00 +00:00
|
|
|
"../common_video",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-09-25 09:18:00 +00:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../system_wrappers",
|
|
|
|
|
"//testing/gtest",
|
2017-12-14 11:24:00 +01:00
|
|
|
"//third_party/libyuv",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
2017-08-22 07:16:20 -07:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
if (!is_ios) {
|
|
|
|
|
deps += [ "//third_party:jpeg" ]
|
|
|
|
|
sources += [ "testsupport/jpeg_frame_writer.cc" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [ "testsupport/jpeg_frame_writer_ios.cc" ]
|
|
|
|
|
}
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//base:base" ]
|
|
|
|
|
}
|
2017-02-06 02:21:11 -08:00
|
|
|
}
|
|
|
|
|
|
2017-09-27 14:46:24 +02:00
|
|
|
rtc_source_set("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",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
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
|
|
|
|
|
outputs = [
|
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-11-23 12:58:35 -08:00
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
rtc_test("test_support_unittests") {
|
|
|
|
|
deps = [
|
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",
|
2018-08-22 15:32:38 +02:00
|
|
|
":fileutils_unittests",
|
2018-01-05 15:34:09 +01:00
|
|
|
":perf_test",
|
2017-09-25 09:18:00 +00:00
|
|
|
":rtp_test_utils",
|
2018-08-27 14:12:27 +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",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../api:create_simulcast_test_fixture_api",
|
|
|
|
|
"../api:simulcast_test_fixture_api",
|
2018-10-26 15:57:48 +02:00
|
|
|
"../api/test/video:function_video_factory",
|
2018-11-08 10:02:56 -08:00
|
|
|
"../api/video:builtin_video_bitrate_allocator_factory",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2018-04-06 10:48:10 +02:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../modules/video_capture",
|
|
|
|
|
"../modules/video_coding:simulcast_test_fixture_impl",
|
2017-09-25 09:18:00 +00:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-04-06 10:48:10 +02:00
|
|
|
"../test:single_threaded_task_queue",
|
2018-09-27 13:47:01 +02:00
|
|
|
"scenario:scenario_unittests",
|
2018-08-27 14:12:27 +02:00
|
|
|
"//testing/gmock",
|
2018-04-06 10:48:10 +02:00
|
|
|
"//testing/gtest",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-09-25 09:18:00 +00:00
|
|
|
]
|
|
|
|
|
sources = [
|
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",
|
2017-09-25 09:18:00 +00:00
|
|
|
"frame_generator_unittest.cc",
|
|
|
|
|
"rtp_file_reader_unittest.cc",
|
|
|
|
|
"rtp_file_writer_unittest.cc",
|
|
|
|
|
"single_threaded_task_queue_unittest.cc",
|
|
|
|
|
"testsupport/always_passing_unittest.cc",
|
|
|
|
|
"testsupport/perf_test_unittest.cc",
|
2017-09-27 14:46:24 +02:00
|
|
|
"testsupport/test_artifacts_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
|
|
|
]
|
|
|
|
|
|
2017-09-25 09:18:00 +00:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
2017-04-27 12:29:29 -07:00
|
|
|
|
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) {
|
2018-10-05 14:52:11 +02:00
|
|
|
rtc_source_set("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 = [
|
2018-10-05 14:52:11 +02:00
|
|
|
"testsupport/iosfileutils.h",
|
2017-08-23 23:55:54 -07:00
|
|
|
"testsupport/iosfileutils.mm",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
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) {
|
|
|
|
|
rtc_source_set("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 = [
|
|
|
|
|
"testsupport/macfileutils.h",
|
|
|
|
|
"testsupport/macfileutils.mm",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
rtc_source_set("fileutils") {
|
|
|
|
|
testonly = true
|
2018-03-15 15:05:39 +01:00
|
|
|
visibility = [ "*" ]
|
2017-04-27 12:29:29 -07:00
|
|
|
sources = [
|
|
|
|
|
"testsupport/fileutils.cc",
|
|
|
|
|
"testsupport/fileutils.h",
|
|
|
|
|
]
|
2017-06-01 04:47:20 -07:00
|
|
|
deps = [
|
2018-10-23 15:50:10 +02:00
|
|
|
":fileutils_override_api",
|
|
|
|
|
":fileutils_override_impl",
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base/system:arch",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":fileutils_ios_objc" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
deps += [ ":fileutils_mac_objc" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ "../rtc_base:rtc_base" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# We separate header into own target to make it possible for downstream
|
|
|
|
|
# projects to override implementation.
|
|
|
|
|
rtc_source_set("fileutils_override_api") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/fileutils_override.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("fileutils_override_impl") {
|
|
|
|
|
testonly = true
|
|
|
|
|
visibility = [ ":fileutils" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/fileutils_override.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":fileutils_override_api",
|
2017-06-01 04:47:20 -07:00
|
|
|
"..:webrtc_common",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-07-25 16:05:48 +02:00
|
|
|
"../rtc_base/system:arch",
|
2018-06-18 12:54:17 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-01 04:47:20 -07:00
|
|
|
]
|
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) {
|
2017-07-19 10:40:47 -07:00
|
|
|
deps += [ "../rtc_base: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) {
|
|
|
|
|
public_deps = [
|
|
|
|
|
":run_test_objc",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
|
|
|
|
public_deps = [
|
|
|
|
|
":run_test_generic",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("run_test_interface") {
|
2016-10-24 01:52:39 -07:00
|
|
|
sources = [
|
|
|
|
|
"run_test.h",
|
|
|
|
|
]
|
2017-08-23 23:55:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
rtc_source_set("run_test_objc") {
|
|
|
|
|
testonly = true
|
2017-09-05 05:11:41 -07:00
|
|
|
visibility = [ ":run_test" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
sources = [
|
|
|
|
|
"mac/run_test.mm",
|
|
|
|
|
]
|
2017-09-05 05:11:41 -07:00
|
|
|
deps = [
|
2017-08-23 23:55:54 -07:00
|
|
|
":run_test_interface",
|
|
|
|
|
]
|
2016-10-24 01:52:39 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-23 23:55:54 -07:00
|
|
|
rtc_source_set("run_test_generic") {
|
|
|
|
|
testonly = true
|
2017-09-05 05:11:41 -07:00
|
|
|
visibility = [ ":run_test" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
sources = [
|
|
|
|
|
"run_test.cc",
|
|
|
|
|
]
|
2017-09-05 05:11:41 -07:00
|
|
|
deps = [
|
2017-08-23 23:55:54 -07:00
|
|
|
":run_test_interface",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-05 06:42:45 -08:00
|
|
|
rtc_source_set("fileutils_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2016-12-05 06:42:45 -08:00
|
|
|
sources = [
|
|
|
|
|
"testsupport/fileutils_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":fileutils",
|
2017-06-01 04:47:20 -07:00
|
|
|
":test_support",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2016-12-05 06:42:45 -08:00
|
|
|
"//testing/gtest",
|
2018-06-18 12:54:17 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2016-12-05 06:42:45 -08:00
|
|
|
]
|
|
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
|
2017-02-08 05:55:51 -08:00
|
|
|
rtc_source_set("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",
|
|
|
|
|
]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
deps = [
|
2017-06-01 04:47:20 -07:00
|
|
|
"..:webrtc_common",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../api:simulated_network_api",
|
2017-02-08 05:55:51 -08:00
|
|
|
"../api:transport_api",
|
2017-12-04 10:50:51 +01:00
|
|
|
"../call:call_interfaces",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../call:simulated_packet_receiver",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../modules/rtp_rtcp",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-08-22 04:02:52 -07:00
|
|
|
"../rtc_base:sequenced_task_checker",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../system_wrappers",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-02-08 05:55:51 -08:00
|
|
|
]
|
2017-08-22 04:02:52 -07:00
|
|
|
public_deps = [
|
|
|
|
|
":single_threaded_task_queue",
|
2018-03-14 15:16:50 +01:00
|
|
|
"../call:fake_network",
|
2017-08-22 04:02:52 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("single_threaded_task_queue") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"single_threaded_task_queue.cc",
|
|
|
|
|
"single_threaded_task_queue.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-08-22 04:02:52 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-08-22 04:02:52 -07:00
|
|
|
]
|
2017-02-08 05:55:51 -08:00
|
|
|
}
|
|
|
|
|
|
2018-08-27 14:12:27 +02:00
|
|
|
rtc_source_set("fake_video_codecs") {
|
|
|
|
|
testonly = true
|
|
|
|
|
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",
|
|
|
|
|
]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
2018-10-05 14:17:58 +02:00
|
|
|
"../api/video:encoded_image",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2018-10-12 10:30:31 +02:00
|
|
|
"../api/video_codecs:create_vp8_temporal_layers",
|
2018-08-27 14:12:27 +02:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../common_video:common_video",
|
|
|
|
|
"../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:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_task_queue",
|
|
|
|
|
"../rtc_base:sequenced_task_checker",
|
|
|
|
|
"../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("test_common") {
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"call_test.cc",
|
|
|
|
|
"call_test.h",
|
|
|
|
|
"constants.cc",
|
|
|
|
|
"constants.h",
|
|
|
|
|
"drifting_clock.cc",
|
|
|
|
|
"drifting_clock.h",
|
|
|
|
|
"encoder_settings.cc",
|
|
|
|
|
"encoder_settings.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",
|
2018-03-09 15:37:03 +00:00
|
|
|
"mock_transport.cc",
|
2016-06-01 04:48:26 -07:00
|
|
|
"mock_transport.h",
|
|
|
|
|
"null_transport.cc",
|
|
|
|
|
"null_transport.h",
|
|
|
|
|
"rtp_rtcp_observer.h",
|
|
|
|
|
"statistics.cc",
|
|
|
|
|
"statistics.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
|
|
|
"win/run_loop_win.cc",
|
|
|
|
|
]
|
|
|
|
|
if (!is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"run_loop.cc",
|
|
|
|
|
"run_loop.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-02-08 05:55:51 -08:00
|
|
|
":direct_transport",
|
2018-08-27 14:12:27 +02:00
|
|
|
":fake_video_codecs",
|
2018-03-15 15:05:39 +01:00
|
|
|
":fileutils",
|
2016-06-01 04:48:26 -07:00
|
|
|
":rtp_test_utils",
|
|
|
|
|
":test_support",
|
2017-03-01 03:37:08 -08:00
|
|
|
":video_test_common",
|
2018-01-04 12:14:35 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
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",
|
2018-10-24 17:01:58 +02:00
|
|
|
"../api/test/video:function_video_factory",
|
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",
|
2016-06-10 01:56:57 -07:00
|
|
|
"../audio",
|
|
|
|
|
"../call",
|
2017-12-04 10:50:51 +01:00
|
|
|
"../call:call_interfaces",
|
2018-08-20 13:30:39 +02:00
|
|
|
"../call:fake_network",
|
2017-08-09 06:42:32 -07:00
|
|
|
"../call:rtp_sender",
|
2018-08-20 13:30:39 +02:00
|
|
|
"../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",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../logging:rtc_event_log_api",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_event_log_impl_base",
|
2018-03-09 15:03:26 -08:00
|
|
|
"../media:rtc_internal_video_codecs",
|
2017-11-30 17:16:21 +01:00
|
|
|
"../media:rtc_media_base",
|
2018-03-07 14:44:00 +01:00
|
|
|
"../modules/audio_device",
|
2018-03-15 12:44:12 +01:00
|
|
|
"../modules/audio_device:audio_device_impl",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../modules/audio_device:mock_audio_device",
|
2016-11-17 06:48:48 -08:00
|
|
|
"../modules/audio_mixer:audio_mixer_impl",
|
2016-11-17 06:28:59 -08:00
|
|
|
"../modules/audio_processing",
|
2018-08-03 13:25:17 +02:00
|
|
|
"../modules/congestion_controller/bbr",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../modules/rtp_rtcp",
|
|
|
|
|
"../modules/rtp_rtcp:mock_rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-09-18 03:08:08 -07:00
|
|
|
"../modules/video_coding:video_coding_utility",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../modules/video_coding:webrtc_h264",
|
2018-03-09 15:03:26 -08:00
|
|
|
"../modules/video_coding:webrtc_multiplex",
|
2018-06-21 16:16:38 +02:00
|
|
|
"../modules/video_coding:webrtc_vp8",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../modules/video_coding:webrtc_vp9",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-08-03 13:25:17 +02:00
|
|
|
"../rtc_base/experiments:congestion_controller_experiment",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
2016-06-10 01:56:57 -07:00
|
|
|
"../video",
|
2016-06-01 04:48:26 -07:00
|
|
|
"//testing/gtest",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2016-06-01 04:48:26 -07: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
|
|
|
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
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("test_renderer") {
|
2017-09-05 05:11:41 -07:00
|
|
|
public_deps = [
|
|
|
|
|
":test_renderer_generic",
|
|
|
|
|
]
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
2017-08-23 23:55:54 -07:00
|
|
|
if (is_mac) {
|
2017-09-05 05:11:41 -07:00
|
|
|
public_deps += [ ":test_renderer_objc" ]
|
2017-08-23 23:55:54 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
rtc_source_set("test_renderer_objc") {
|
|
|
|
|
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",
|
|
|
|
|
]
|
|
|
|
|
libs = [
|
|
|
|
|
"Cocoa.framework",
|
|
|
|
|
"OpenGL.framework",
|
|
|
|
|
"CoreVideo.framework",
|
|
|
|
|
]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("test_renderer_generic") {
|
|
|
|
|
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",
|
|
|
|
|
"win/d3d_renderer.cc",
|
|
|
|
|
"win/d3d_renderer.h",
|
|
|
|
|
]
|
2017-08-23 23:55:54 -07:00
|
|
|
deps = [
|
|
|
|
|
":test_support",
|
|
|
|
|
"..:webrtc_common",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2017-08-23 23:55:54 -07:00
|
|
|
"../common_video",
|
2017-11-30 17:16:21 +01:00
|
|
|
"../media:rtc_media_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-08-23 23:55:54 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
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",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
}
|
2017-04-10 05:15:48 -07:00
|
|
|
|
|
|
|
|
rtc_source_set("audio_codec_mocks") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
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",
|
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",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-04-10 05:15:48 -07:00
|
|
|
]
|
|
|
|
|
}
|
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
|
|
|
|
|
java_files = [
|
|
|
|
|
"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",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|