Index: content/browser/renderer_host/media/audio_output_delegate_unittest.cc |
diff --git a/content/browser/renderer_host/media/audio_output_delegate_unittest.cc b/content/browser/renderer_host/media/audio_output_delegate_unittest.cc |
index d508735eaae807e869fd03c1a57564c67be16b18..57f6f893c3b737a63b9caf7b12fe6b899d3c689c 100644 |
--- a/content/browser/renderer_host/media/audio_output_delegate_unittest.cc |
+++ b/content/browser/renderer_host/media/audio_output_delegate_unittest.cc |
@@ -14,6 +14,7 @@ |
#include "base/memory/ptr_util.h" |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "component/arc/video_facing.h" |
#include "content/browser/audio_manager_thread.h" |
#include "content/browser/media/capture/audio_mirroring_manager.h" |
#include "content/browser/renderer_host/media/media_stream_manager.h" |
@@ -96,6 +97,12 @@ class DummyAudioOutputStream : public media::AudioOutputStream { |
void Close() override {} |
}; |
+class MockVideoCaptureObserver : public component::VideoCaptureObserver { |
+ public: |
+ MOCK_METHOD1(OnVideoCaptureStarted, void(component::VideoFacingMode)); |
+ MOCK_METHOD1(OnVideoCaptureStopped, void(component::VideoFacingMode)); |
+}; |
+ |
} // namespace |
class AudioOutputDelegateTest : public testing::Test { |
@@ -116,7 +123,7 @@ class AudioOutputDelegateTest : public testing::Test { |
audio_thread_->task_runner(), audio_thread_->worker_task_runner(), |
&log_factory_)); |
media_stream_manager_ = |
- base::MakeUnique<MediaStreamManager>(audio_manager_.get()); |
+ base::MakeUnique<MediaStreamManager>(audio_manager_.get(), new MockVideoCaptureObserver()); |
} |
// Test bodies are here, so that we can run them on the IO thread. |