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")
|
|
|
|
|
}
|
2016-11-23 12:58:35 -08:00
|
|
|
if (rtc_use_memcheck) {
|
2016-12-17 12:21:39 -08:00
|
|
|
import("//tools-webrtc/valgrind/valgrind-webrtc.gni")
|
2016-11-23 12:58:35 -08:00
|
|
|
}
|
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 = [
|
|
|
|
|
":field_trial",
|
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
|
|
|
|
|
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
deps += [
|
|
|
|
|
":test_main",
|
|
|
|
|
":test_support_unittests",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("video_test_common") {
|
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",
|
2017-02-06 02:21:11 -08:00
|
|
|
"vcm_capturer.cc",
|
|
|
|
|
"vcm_capturer.h",
|
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
|
|
|
"video_capturer.cc",
|
2017-02-06 02:21:11 -08:00
|
|
|
"video_capturer.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 = [
|
|
|
|
|
"../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",
|
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",
|
|
|
|
|
"../modules/rtp_rtcp",
|
|
|
|
|
"//testing/gtest",
|
2014-09-30 18:05:02 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("field_trial") {
|
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",
|
2014-09-30 18:05:02 +00:00
|
|
|
"../system_wrappers",
|
2016-01-08 05:04:57 -08:00
|
|
|
"../system_wrappers:field_trial_default",
|
2014-09-30 18:05:02 +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
|
|
|
rtc_source_set("test_support") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"gmock.h",
|
|
|
|
|
"gtest.h",
|
|
|
|
|
"testsupport/packet_reader.cc",
|
|
|
|
|
"testsupport/packet_reader.h",
|
|
|
|
|
"testsupport/perf_test.cc",
|
|
|
|
|
"testsupport/perf_test.h",
|
|
|
|
|
"testsupport/trace_to_stderr.cc",
|
|
|
|
|
"testsupport/trace_to_stderr.h",
|
|
|
|
|
"testsupport/unittest_utils.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../base:gtest_prod",
|
|
|
|
|
"../base:rtc_base_approved",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../system_wrappers",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
|
":fileutils",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
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" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//base:base" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios && !build_with_chromium) {
|
|
|
|
|
deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_use_memcheck) {
|
|
|
|
|
data = valgrind_webrtc_dependencies
|
2017-04-27 12:29:29 -07:00
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
}
|
|
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
# This target depends on //third_party/gflags and since chromium does not
|
|
|
|
|
# have gflags it causes an error when Gn parses this BUILD.gn file.
|
|
|
|
|
# It seems that Gn eagerly tries to understand if all the targets are
|
|
|
|
|
# buildable (even deps). Obviously gflags is not buildable in chromium
|
|
|
|
|
# so if a target depends on this BUILD.gn file we hit this error.
|
|
|
|
|
rtc_source_set("test_main") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test_main.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
|
":test_support",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":field_trial",
|
|
|
|
|
"../system_wrappers:metrics_default",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
"//third_party/gflags",
|
|
|
|
|
]
|
2016-12-05 06:42:45 -08:00
|
|
|
}
|
|
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
rtc_source_set("video_test_support") {
|
|
|
|
|
testonly = true
|
2014-09-30 18:05:02 +00:00
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
sources = [
|
|
|
|
|
"testsupport/frame_reader.h",
|
|
|
|
|
"testsupport/frame_writer.h",
|
|
|
|
|
"testsupport/metrics/video_metrics.cc",
|
|
|
|
|
"testsupport/metrics/video_metrics.h",
|
|
|
|
|
"testsupport/mock/mock_frame_reader.h",
|
|
|
|
|
"testsupport/mock/mock_frame_writer.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-04-27 12:29:29 -07:00
|
|
|
deps = [
|
|
|
|
|
"../base:rtc_base_approved",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../system_wrappers",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
"//third_party/gflags",
|
|
|
|
|
]
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
public_deps = [
|
|
|
|
|
":fileutils",
|
|
|
|
|
]
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-04-27 12:29:29 -07: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-04-27 12:29:29 -07:00
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//base:base" ]
|
|
|
|
|
}
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ]
|
|
|
|
|
}
|
2017-02-06 02:21:11 -08:00
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
if (rtc_use_memcheck) {
|
|
|
|
|
data = valgrind_webrtc_dependencies
|
|
|
|
|
}
|
2017-02-06 02:21:11 -08: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
|
|
|
rtc_source_set("test_support_isolated_output") {
|
2017-04-27 12:29:29 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/isolated_output.cc",
|
|
|
|
|
"testsupport/isolated_output.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
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
|
|
|
":fileutils",
|
2017-04-27 12:29:29 -07:00
|
|
|
"../base:rtc_base_approved",
|
|
|
|
|
"//third_party/gflags",
|
|
|
|
|
]
|
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
|
|
|
|
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
|
|
|
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",
|
|
|
|
|
]
|
2016-06-14 12:52:54 +02: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_ios) {
|
|
|
|
|
bundle_data("test_support_unittests_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = test_support_unittests_resources
|
|
|
|
|
outputs = [
|
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
|
]
|
2017-04-27 12:29:29 -07:00
|
|
|
}
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
2016-11-23 12:58:35 -08:00
|
|
|
|
2017-04-27 12:29:29 -07:00
|
|
|
rtc_test("test_support_unittests") {
|
|
|
|
|
deps = []
|
|
|
|
|
sources = [
|
|
|
|
|
"fake_audio_device_unittest.cc",
|
|
|
|
|
"fake_network_pipe_unittest.cc",
|
|
|
|
|
"frame_generator_unittest.cc",
|
|
|
|
|
"rtp_file_reader_unittest.cc",
|
|
|
|
|
"rtp_file_writer_unittest.cc",
|
|
|
|
|
"testsupport/always_passing_unittest.cc",
|
|
|
|
|
"testsupport/isolated_output_unittest.cc",
|
|
|
|
|
"testsupport/metrics/video_metrics_unittest.cc",
|
|
|
|
|
"testsupport/packet_reader_unittest.cc",
|
|
|
|
|
"testsupport/perf_test_unittest.cc",
|
|
|
|
|
"testsupport/y4m_frame_writer_unittest.cc",
|
|
|
|
|
"testsupport/yuv_frame_reader_unittest.cc",
|
|
|
|
|
"testsupport/yuv_frame_writer_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
# virtual override w/different const/volatile signature.
|
|
|
|
|
cflags = [ "/wd4373" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data = test_support_unittests_resources
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
|
|
|
|
shard_timeout = 900
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":test_support_unittests_bundle_data" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
|
":direct_transport",
|
|
|
|
|
":fileutils_unittests",
|
|
|
|
|
":test_common",
|
|
|
|
|
":test_main",
|
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
|
|
|
":test_support_isolated_output",
|
2017-04-27 12:29:29 -07:00
|
|
|
":video_test_common",
|
|
|
|
|
":video_test_support",
|
|
|
|
|
"../modules/video_capture",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
"//third_party/gflags",
|
|
|
|
|
]
|
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-04-27 12:29:29 -07:00
|
|
|
rtc_source_set("fileutils") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/fileutils.cc",
|
|
|
|
|
"testsupport/fileutils.h",
|
|
|
|
|
]
|
2017-05-02 04:51:40 -07:00
|
|
|
deps = []
|
2017-04-27 12:29:29 -07:00
|
|
|
if (is_ios) {
|
|
|
|
|
sources += [ "testsupport/iosfileutils.mm" ]
|
2017-05-02 04:51:40 -07:00
|
|
|
deps += [ "../sdk:rtc_sdk_helpers_objc" ]
|
2016-11-23 12:58:35 -08:00
|
|
|
}
|
2017-04-27 12:29:29 -07:00
|
|
|
visibility = [ ":*" ]
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
2016-10-24 01:52:39 -07:00
|
|
|
rtc_source_set("run_test") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"run_test.h",
|
|
|
|
|
]
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
sources += [ "mac/run_test.mm" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [ "run_test.cc" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
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",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-06-01 04:48:26 -07:00
|
|
|
|
2017-02-08 05:55:51 -08:00
|
|
|
rtc_source_set("direct_transport") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"direct_transport.cc",
|
|
|
|
|
"direct_transport.h",
|
|
|
|
|
"fake_network_pipe.cc",
|
|
|
|
|
"fake_network_pipe.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 = [
|
|
|
|
|
"../api:transport_api",
|
|
|
|
|
"../base:rtc_base_approved",
|
|
|
|
|
"../call",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-28 14:41:05 -08:00
|
|
|
rtc_source_set("fake_audio_device") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"fake_audio_device.cc",
|
|
|
|
|
"fake_audio_device.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 = [
|
|
|
|
|
"../base:rtc_base_approved",
|
2017-04-24 13:05:47 -07:00
|
|
|
"../modules/audio_device:audio_device",
|
2017-02-28 14:41:05 -08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
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",
|
|
|
|
|
"configurable_frame_size_encoder.cc",
|
|
|
|
|
"configurable_frame_size_encoder.h",
|
|
|
|
|
"constants.cc",
|
|
|
|
|
"constants.h",
|
|
|
|
|
"drifting_clock.cc",
|
|
|
|
|
"drifting_clock.h",
|
|
|
|
|
"encoder_settings.cc",
|
|
|
|
|
"encoder_settings.h",
|
|
|
|
|
"fake_decoder.cc",
|
|
|
|
|
"fake_decoder.h",
|
|
|
|
|
"fake_encoder.cc",
|
|
|
|
|
"fake_encoder.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",
|
|
|
|
|
"mock_transport.h",
|
|
|
|
|
"mock_voe_channel_proxy.h",
|
|
|
|
|
"mock_voice_engine.h",
|
|
|
|
|
"null_transport.cc",
|
|
|
|
|
"null_transport.h",
|
|
|
|
|
"rtp_rtcp_observer.h",
|
|
|
|
|
"statistics.cc",
|
|
|
|
|
"statistics.h",
|
|
|
|
|
"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",
|
2017-02-28 14:41:05 -08:00
|
|
|
":fake_audio_device",
|
2016-06-01 04:48:26 -07:00
|
|
|
":rtp_test_utils",
|
|
|
|
|
":test_support",
|
2017-03-01 03:37:08 -08:00
|
|
|
":video_test_common",
|
2016-06-01 04:48:26 -07:00
|
|
|
"..:webrtc_common",
|
2017-04-05 03:02:20 -07:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2016-06-10 01:56:57 -07:00
|
|
|
"../audio",
|
2016-06-01 04:48:26 -07:00
|
|
|
"../base:rtc_base_approved",
|
2016-06-10 01:56:57 -07:00
|
|
|
"../call",
|
2017-04-27 02:08:52 -07:00
|
|
|
"../modules/audio_coding:builtin_audio_encoder_factory",
|
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",
|
2016-06-10 01:56:57 -07:00
|
|
|
"../video",
|
2016-06-01 04:48:26 -07:00
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("test_renderer_exported_config") {
|
|
|
|
|
if (is_win && is_clang) {
|
|
|
|
|
# GN orders flags on a target before flags from configs. The default config
|
|
|
|
|
# adds -Wall, and this flag have to be after -Wall -- so they need to
|
|
|
|
|
# come from a config and cannot be on the target directly.
|
2016-08-25 04:15:40 -07:00
|
|
|
cflags = [
|
2016-06-01 04:48:26 -07:00
|
|
|
"-Wno-bool-conversion",
|
|
|
|
|
"-Wno-comment",
|
|
|
|
|
"-Wno-delete-non-virtual-dtor",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("test_renderer") {
|
2016-06-01 04:48:26 -07:00
|
|
|
testonly = true
|
|
|
|
|
libs = []
|
|
|
|
|
sources = [
|
|
|
|
|
"linux/glx_renderer.cc",
|
|
|
|
|
"linux/glx_renderer.h",
|
|
|
|
|
"linux/video_renderer_linux.cc",
|
|
|
|
|
"mac/video_renderer_mac.h",
|
|
|
|
|
"mac/video_renderer_mac.mm",
|
|
|
|
|
"video_renderer.cc",
|
|
|
|
|
"video_renderer.h",
|
|
|
|
|
"win/d3d_renderer.cc",
|
|
|
|
|
"win/d3d_renderer.h",
|
|
|
|
|
]
|
|
|
|
|
if (!is_linux && !is_mac && !is_win) {
|
|
|
|
|
sources += [ "null_platform_renderer.cc" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_linux || is_mac) {
|
|
|
|
|
sources += [
|
|
|
|
|
"gl/gl_renderer.cc",
|
|
|
|
|
"gl/gl_renderer.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_linux) {
|
|
|
|
|
libs += [
|
|
|
|
|
"Xext",
|
|
|
|
|
"X11",
|
|
|
|
|
"GL",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_android) {
|
|
|
|
|
libs += [
|
|
|
|
|
"GLESv2",
|
|
|
|
|
"log",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
libs = [
|
|
|
|
|
"Cocoa.framework",
|
|
|
|
|
"OpenGL.framework",
|
|
|
|
|
"CoreVideo.framework",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":test_renderer_exported_config" ]
|
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 = [
|
|
|
|
|
":test_support",
|
|
|
|
|
"../modules/media_file",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
}
|
2017-04-10 05:15:48 -07:00
|
|
|
|
|
|
|
|
rtc_source_set("audio_codec_mocks") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"mock_audio_decoder.h",
|
|
|
|
|
"mock_audio_decoder_factory.h",
|
|
|
|
|
]
|
|
|
|
|
}
|