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

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

Issue 9316077: Enable audio/video tag in content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix content_unittests Created 8 years, 9 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 5260d7269b7deced525ca5a971bcba65e8bb4727..b68737d843ca4b9812179ad231eeac8c548670e6 100644
--- a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
+++ b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
@@ -51,6 +51,8 @@ class MockAudioRendererHost : public AudioRendererHost {
}
virtual ~MockAudioRendererHost() {
+ // Make sure all audio streams have been deleted.
+ EXPECT_EQ(0u, audio_entries_.size());
}
// A list of mock methods.
@@ -189,7 +191,6 @@ class AudioRendererHostTest : public testing::Test {
void Create() {
EXPECT_CALL(*observer_,
OnSetAudioStreamStatus(_, kStreamId, "created"));
- EXPECT_CALL(*observer_, OnDeleteAudioStream(_, kStreamId));
InSequence s;
// We will first receive an OnStreamCreated() signal.
@@ -263,6 +264,9 @@ 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/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698