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

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

Issue 9692038: stopping the audio thread before destroying the AudioManager<Platform> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased and fixed the speech recognition unittest 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 b68737d843ca4b9812179ad231eeac8c548670e6..5c9ef6bdd0385bb6973aeac6af88da2669123435 100644
--- a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
+++ b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
@@ -361,12 +361,12 @@ TEST_F(AudioRendererHostTest, SetVolume) {
SetVolume(0.5);
Play();
Pause();
- Close();
// Expect the volume is set.
if (IsRunningHeadless()) {
- EXPECT_EQ(0.5, FakeAudioOutputStream::GetLastFakeStream()->volume());
+ EXPECT_EQ(0.5, FakeAudioOutputStream::GetCurrentFakeStream()->volume());
}
+ Close();
}
// Simulate the case where a stream is not properly closed.

Powered by Google App Engine
This is Rietveld 408576698