diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 13:34:16 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 13:34:16 +0000 |
commit | 7e446bb78563052307cfb1218d152e7e35815742 (patch) | |
tree | 270eb3044b2cae3015a4431bcb50ad050c126959 /media | |
parent | b0cfc1cf30c90fef78a11b858f7b5c243f3bd2dc (diff) | |
download | chromium_src-7e446bb78563052307cfb1218d152e7e35815742.zip chromium_src-7e446bb78563052307cfb1218d152e7e35815742.tar.gz chromium_src-7e446bb78563052307cfb1218d152e7e35815742.tar.bz2 |
Remove the RecordWithSlowSink test. The test has problems running on the build bots and after discussing its benefits, we decided that we don't need to test this level of tolerance and that the Record test is enough.
BUG=107546
Review URL: http://codereview.chromium.org/8957006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/audio/audio_input_unittest.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/media/audio/audio_input_unittest.cc b/media/audio/audio_input_unittest.cc index 2c92640..b0e8509 100644 --- a/media/audio/audio_input_unittest.cc +++ b/media/audio/audio_input_unittest.cc @@ -190,34 +190,3 @@ TEST(AudioInputTest, Record) { ais->Stop(); ais->Close(); } - -// Test a recording sequence with delays in the audio callback. -// TODO(joth): See bug 107546. This fails on slow bots. Once fixed, remove the -// CHROME_HEADLESS check below. -TEST(AudioInputTest, RecordWithSlowSink) { - scoped_refptr<AudioManager> audio_man(AudioManager::Create()); - if (!CanRunAudioTests(audio_man.get())) - return; - - scoped_ptr<base::Environment> env(base::Environment::Create()); - if (env->HasVar("CHROME_HEADLESS")) - return; - - MessageLoop message_loop(MessageLoop::TYPE_DEFAULT); - AudioInputStream* ais = CreateTestAudioInputStream(audio_man.get()); - EXPECT_TRUE(ais->Open()); - - // We should normally get a callback every 50ms, and a 20ms delay inside each - // callback should not change this sequence. - TestInputCallbackBlocking test_callback(kSamplesPerPacket * 4, 0, 20); - ais->Start(&test_callback); - // Verify at least 500ms worth of audio was recorded, after giving sufficient - // extra time. - message_loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), 590); - message_loop.Run(); - EXPECT_GE(test_callback.callback_count(), 10); - EXPECT_FALSE(test_callback.had_error()); - - ais->Stop(); - ais->Close(); -} |