summaryrefslogtreecommitdiffstats
path: root/media/audio
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 20:52:31 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 20:52:31 +0000
commitfad23f5b3f8ae2e378ed23e9d25494ef73b535ec (patch)
tree52ba91998f03e286e948323f48c5e8ead68bd64e /media/audio
parentc5d79834e2053a5e4983198255c8f58b5ba596cb (diff)
downloadchromium_src-fad23f5b3f8ae2e378ed23e9d25494ef73b535ec.zip
chromium_src-fad23f5b3f8ae2e378ed23e9d25494ef73b535ec.tar.gz
chromium_src-fad23f5b3f8ae2e378ed23e9d25494ef73b535ec.tar.bz2
Remove a disabled and unneeded test.
TEST=AudioUtilTest.DISABLED_FoldChannels_s16_benchmark BUG=none Review URL: http://codereview.chromium.org/3440020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60516 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio')
-rw-r--r--media/audio/audio_util_unittest.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/media/audio/audio_util_unittest.cc b/media/audio/audio_util_unittest.cc
index ae653c6..fde2127 100644
--- a/media/audio/audio_util_unittest.cc
+++ b/media/audio/audio_util_unittest.cc
@@ -138,22 +138,4 @@ TEST(AudioUtilTest, FoldChannels71_s16) {
EXPECT_EQ(0, expected_test);
}
-// This mimics 1 second of audio at 48000 samples per second.
-// Running the unittest will produce timing.
-TEST(AudioUtilTest, DISABLED_FoldChannels_s16_benchmark) {
- const int kBufferSize = 1024 * 6;
- // Test AdjustVolume() on 16 bit samples.
- for (int i = 0; i < 48000; ++i) {
- int16 samples_s16[kBufferSize];
- for (int j = 0; j < kBufferSize; ++j)
- samples_s16[j] = j;
-
- bool result_s16 = media::FoldChannels(samples_s16, sizeof(samples_s16),
- 6, // channels.
- sizeof(samples_s16[0]),
- 0.5f);
- EXPECT_EQ(true, result_s16);
- }
-}
-
} // namespace media