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

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

Issue 12387006: Pass more detailed audio hardware configuration information to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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/renderer/media/audio_renderer_mixer_manager_unittest.cc
===================================================================
--- content/renderer/media/audio_renderer_mixer_manager_unittest.cc (revision 186233)
+++ content/renderer/media/audio_renderer_mixer_manager_unittest.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/renderer/media/audio_renderer_mixer_manager.h"
+#include "media/audio/audio_parameters.h"
#include "media/base/audio_hardware_config.h"
#include "media/base/audio_renderer_mixer.h"
#include "media/base/audio_renderer_mixer_input.h"
@@ -24,10 +25,20 @@
static const int kRenderViewId = 123;
static const int kAnotherRenderViewId = 456;
+using media::AudioParameters;
+
+// AudioParameters(
DaleCurtis 2013/03/07 02:41:39 ?
Chris Rogers 2013/03/09 01:37:50 Done.
+// AudioParameters::AUDIO_PCM_LOW_LATENCY,
+// media::CHANNEL_LAYOUT_NONE,
+// kSampleRate,
+// 16,
+// kBufferSize)
+
+
class AudioRendererMixerManagerTest : public testing::Test {
public:
AudioRendererMixerManagerTest()
- : fake_config_(kBufferSize, kSampleRate, 0, media::CHANNEL_LAYOUT_NONE) {
+ : fake_config_(AudioParameters(), AudioParameters()) {
DaleCurtis 2013/03/07 02:41:39 I think this test needs real parameters, but I don
Chris Rogers 2013/03/09 01:37:50 I've improved this a bit to make sure the output c
manager_.reset(new AudioRendererMixerManager(&fake_config_));
// We don't want to deal with instantiating a real AudioOutputDevice since

Powered by Google App Engine
This is Rietveld 408576698