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

Unified Diff: content/renderer/media/audio_renderer_impl_unittest.cc

Issue 6717001: Move audio messages to their own file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « content/renderer/media/audio_renderer_impl.cc ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_renderer_impl_unittest.cc
===================================================================
--- content/renderer/media/audio_renderer_impl_unittest.cc (revision 78894)
+++ content/renderer/media/audio_renderer_impl_unittest.cc (working copy)
@@ -3,8 +3,7 @@
// found in the LICENSE file.
#include "base/process_util.h"
-#include "chrome/common/render_messages.h"
-#include "chrome/common/render_messages_params.h"
+#include "content/common/audio_messages.h"
#include "content/renderer/media/audio_renderer_impl.h"
#include "media/base/data_buffer.h"
#include "media/base/media_format.h"
@@ -95,14 +94,6 @@
}
TEST_F(AudioRendererImplTest, Stop) {
- // Declare some state messages.
- const ViewMsg_AudioStreamState_Params kError(
- ViewMsg_AudioStreamState_Params::kError);
- const ViewMsg_AudioStreamState_Params kPlaying(
- ViewMsg_AudioStreamState_Params::kPlaying);
- const ViewMsg_AudioStreamState_Params kPaused(
- ViewMsg_AudioStreamState_Params::kPaused);
-
// Execute Stop() codepath to create an IPC message.
renderer_->Stop(media::NewExpectedCallback());
message_loop_->RunAllPending();
@@ -110,9 +101,9 @@
// Run AudioMessageFilter::Delegate methods, which can be executed after being
// stopped. AudioRendererImpl shouldn't create any messages.
renderer_->OnRequestPacket(AudioBuffersState(kSize, 0));
- renderer_->OnStateChanged(kError);
- renderer_->OnStateChanged(kPlaying);
- renderer_->OnStateChanged(kPaused);
+ renderer_->OnStateChanged(kAudioStreamError);
+ renderer_->OnStateChanged(kAudioStreamPlaying);
+ renderer_->OnStateChanged(kAudioStreamPaused);
renderer_->OnCreated(shared_mem_.handle(), kSize);
renderer_->OnVolume(0.5);
« no previous file with comments | « content/renderer/media/audio_renderer_impl.cc ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698