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

Unified Diff: content/test/webrtc_audio_device_test.cc

Issue 10537121: Adds AudioDevice factory for all audio clients in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed DVLOGs Created 8 years, 6 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/test/webrtc_audio_device_test.cc
diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc
index 43680b52077f7ef355116fb3c4e750a97ac835e9..2e7235528ace745be64af2b487983ee1bfb2a3fd 100644
--- a/content/test/webrtc_audio_device_test.cc
+++ b/content/test/webrtc_audio_device_test.cc
@@ -21,7 +21,10 @@
#include "content/public/common/content_paths.h"
#include "content/public/test/mock_resource_context.h"
#include "content/public/test/test_browser_thread.h"
+#include "content/renderer/media/audio_device.h"
+#include "content/renderer/media/audio_device_factory.h"
#include "content/renderer/media/audio_hardware.h"
+#include "content/renderer/media/audio_message_filter.h"
#include "content/renderer/media/webrtc_audio_device_impl.h"
#include "content/renderer/render_process.h"
#include "content/renderer/render_thread_impl.h"
@@ -141,6 +144,10 @@ void WebRTCAudioDeviceTest::SetUp() {
sandbox_was_enabled_ =
RendererWebKitPlatformSupportImpl::SetSandboxEnabledForTesting(false);
render_thread_ = new RenderThreadImpl(kThreadName);
+
+ audio_device_factory_.reset(
+ new AudioDeviceFactory<AudioDevice, AudioMessageFilter>(
+ render_thread_->audio_message_filter()));
}
void WebRTCAudioDeviceTest::TearDown() {

Powered by Google App Engine
This is Rietveld 408576698