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

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

Issue 10790121: First step towards moving AudioDevice from content/ to media/audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments after closing ppapi bug Created 8 years, 5 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
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.cc ('k') | content/common/media/audio_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 786cf79e68871e79fab0c25eb899a8c831758cd6..62c09bf140f184d92e230cd648260c553e0baf3f 100644
--- a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
+++ b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
@@ -118,15 +118,20 @@ class MockAudioRendererHost : public AudioRendererHost {
}
void OnStreamStateChanged(const IPC::Message& msg, int stream_id,
- AudioStreamState state) {
- if (state == kAudioStreamPlaying) {
- OnStreamPlaying(stream_id);
- } else if (state == kAudioStreamPaused) {
- OnStreamPaused(stream_id);
- } else if (state == kAudioStreamError) {
- OnStreamError(stream_id);
- } else {
- FAIL() << "Unknown stream state";
+ media::AudioOutputIPCDelegate::State state) {
+ switch (state) {
+ case media::AudioOutputIPCDelegate::kPlaying:
+ OnStreamPlaying(stream_id);
+ break;
+ case media::AudioOutputIPCDelegate::kPaused:
+ OnStreamPaused(stream_id);
+ break;
+ case media::AudioOutputIPCDelegate::kError:
+ OnStreamError(stream_id);
+ break;
+ default:
+ FAIL() << "Unknown stream state";
+ break;
}
}
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.cc ('k') | content/common/media/audio_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698