Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: content/browser/renderer_host/media/audio_renderer_host_unittest.cc

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Comments. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/audio_renderer_host_unittest.cc
diff --git a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
index 6f2aa5c733779f041be073e21c5d049dc0e0efd7..bab2e8b34aacbd9d976ee171f225d5b7fc71d762 100644
--- a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
+++ b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
@@ -161,6 +161,9 @@ class AudioRendererHostTest : public testing::Test {
observer_.reset(new MockMediaObserver());
host_ = new MockAudioRendererHost(audio_manager_.get(), observer_.get());
+ // Expect the audio stream will be deleted.
+ EXPECT_CALL(*observer_, OnDeleteAudioStream(_, kStreamId));
+
// Simulate IPC channel connected.
host_->OnChannelConnected(base::GetCurrentProcId());
}
@@ -259,9 +262,6 @@ class AudioRendererHostTest : public testing::Test {
// Expect an error signal sent through IPC.
EXPECT_CALL(*host_, OnStreamError(kStreamId));
- // Expect the audio stream will be deleted.
- EXPECT_CALL(*observer_, OnDeleteAudioStream(_, kStreamId));
-
// Simulate an error sent from the audio device.
host_->OnError(controller, 0);
SyncWithAudioThread();
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.cc ('k') | content/browser/renderer_host/media/audio_sync_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698