Index: content/renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc |
diff --git a/content/renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc b/content/renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc |
index a937d6d1379dc8fa01f4d37bce287c48bf3a3d4f..ea7839cf6dffe1c6a02fe496bc3a9b65ce990b12 100644 |
--- a/content/renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc |
+++ b/content/renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "content/renderer/media/mock_media_constraint_factory.h" |
#include "content/renderer/media/webrtc/webrtc_local_audio_track_adapter.h" |
#include "content/renderer/media/webrtc_local_audio_track.h" |
#include "testing/gmock/include/gmock/gmock.h" |
@@ -33,11 +34,13 @@ class WebRtcLocalAudioTrackAdapterTest : public ::testing::Test { |
WebRtcLocalAudioTrackAdapterTest() |
: params_(media::AudioParameters::AUDIO_PCM_LOW_LATENCY, |
media::CHANNEL_LAYOUT_STEREO, 48000, 16, 480), |
- adapter_(WebRtcLocalAudioTrackAdapter::Create(std::string(), NULL)), |
- capturer_(WebRtcAudioCapturer::CreateCapturer( |
- -1, StreamDeviceInfo(MEDIA_DEVICE_AUDIO_CAPTURE, "", ""), |
- blink::WebMediaConstraints(), NULL)), |
- track_(new WebRtcLocalAudioTrack(adapter_, capturer_, NULL)) {} |
+ adapter_(WebRtcLocalAudioTrackAdapter::Create(std::string(), NULL)) { |
+ MockMediaConstraintFactory constraint_factory; |
+ capturer_ = WebRtcAudioCapturer::CreateCapturer( |
+ -1, StreamDeviceInfo(MEDIA_DEVICE_AUDIO_CAPTURE, "", ""), |
+ constraint_factory.CreateWebMediaConstraints(), NULL); |
+ track_.reset(new WebRtcLocalAudioTrack(adapter_, capturer_, NULL)); |
+ } |
protected: |
virtual void SetUp() OVERRIDE { |