aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorTommi <tommi@webrtc.org>2020-05-18 16:47:56 +0200
committerCommit Bot <commit-bot@chromium.org>2020-05-18 16:10:04 +0000
commit909f3a5339654997734038534cdb1d6822cf3aba (patch)
treebd8f0739c3ac2cc43e20b6eeeec5395d9a2d4153 /audio
parent31c61c5091c44284718a2331912e2f71c3d7a636 (diff)
downloadwebrtc-909f3a5339654997734038534cdb1d6822cf3aba.tar.gz
Rename several more tests that use EXPECT_DEATH to *DeathTest.
Bug: webrtc:11577 Change-Id: I0397ee933464496e4885bb0f8030f3d669e5e612 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175641 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31309}
Diffstat (limited to 'audio')
-rw-r--r--audio/utility/audio_frame_operations_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/utility/audio_frame_operations_unittest.cc b/audio/utility/audio_frame_operations_unittest.cc
index 1d38875add..1a2c16e45f 100644
--- a/audio/utility/audio_frame_operations_unittest.cc
+++ b/audio/utility/audio_frame_operations_unittest.cc
@@ -27,6 +27,8 @@ class AudioFrameOperationsTest : public ::testing::Test {
AudioFrame frame_;
};
+class AudioFrameOperationsDeathTest : public AudioFrameOperationsTest {};
+
void SetFrameData(int16_t ch1,
int16_t ch2,
int16_t ch3,
@@ -105,7 +107,7 @@ void VerifyFrameDataBounds(const AudioFrame& frame,
}
#if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
-TEST_F(AudioFrameOperationsTest, MonoToStereoFailsWithBadParameters) {
+TEST_F(AudioFrameOperationsDeathTest, MonoToStereoFailsWithBadParameters) {
EXPECT_DEATH(AudioFrameOperations::UpmixChannels(2, &frame_), "");
frame_.samples_per_channel_ = AudioFrame::kMaxDataSizeSamples;
frame_.num_channels_ = 1;
@@ -136,7 +138,7 @@ TEST_F(AudioFrameOperationsTest, MonoToStereoMuted) {
}
#if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
-TEST_F(AudioFrameOperationsTest, StereoToMonoFailsWithBadParameters) {
+TEST_F(AudioFrameOperationsDeathTest, StereoToMonoFailsWithBadParameters) {
frame_.num_channels_ = 1;
EXPECT_DEATH(AudioFrameOperations::DownmixChannels(1, &frame_), "");
}