| Index: content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
|
| diff --git a/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc b/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
|
| index ab19418b909b1edcf26627c3b7351e98738a6ef5..366cf395dae17fdf0d068833d5a467baed53b345 100644
|
| --- a/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
|
| +++ b/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/command_line.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/run_loop.h"
|
| +#include "component/arc/video_facing.h"
|
| #include "content/browser/audio_manager_thread.h"
|
| #include "content/browser/browser_thread_impl.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -54,6 +55,12 @@ struct MockListener {
|
| }
|
| };
|
|
|
| +class MockVideoCaptureObserver : public component::VideoCaptureObserver {
|
| + public:
|
| + MOCK_METHOD1(OnVideoCaptureStarted, void(component::VideoFacingMode));
|
| + MOCK_METHOD1(OnVideoCaptureStopped, void(component::VideoFacingMode));
|
| +};
|
| +
|
| url::Origin SecurityOrigin() {
|
| return url::Origin(GURL(kSecurityOriginString));
|
| }
|
| @@ -77,7 +84,7 @@ class AudioOutputAuthorizationHandlerTest : 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());
|
| // Make sure everything is done initializing:
|
| SyncWithAllThreads();
|
| }
|
|
|