Index: content/browser/renderer_host/media/video_capture_manager_unittest.cc |
diff --git a/content/browser/renderer_host/media/video_capture_manager_unittest.cc b/content/browser/renderer_host/media/video_capture_manager_unittest.cc |
index 86dccd33f733d9d454950b925f4b7d432b8861d7..b41066862c0c8e876c20628c7c2d839e01358914 100644 |
--- a/content/browser/renderer_host/media/video_capture_manager_unittest.cc |
+++ b/content/browser/renderer_host/media/video_capture_manager_unittest.cc |
@@ -19,6 +19,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/run_loop.h" |
#include "base/threading/thread_task_runner_handle.h" |
+#include "content/browser/renderer_host/media/in_process_video_capture_provider.h" |
#include "content/browser/renderer_host/media/media_stream_provider.h" |
#include "content/browser/renderer_host/media/video_capture_controller_event_handler.h" |
#include "content/common/media/media_stream_options.h" |
@@ -202,8 +203,11 @@ class VideoCaptureManagerTest : public testing::Test { |
video_capture_device_factory_ = video_capture_device_factory.get(); |
auto video_capture_system = base::MakeUnique<media::VideoCaptureSystemImpl>( |
std::move(video_capture_device_factory)); |
- vcm_ = new VideoCaptureManager(std::move(video_capture_system), |
- base::ThreadTaskRunnerHandle::Get()); |
+ auto video_capture_provider = |
+ base::MakeUnique<InProcessVideoCaptureProvider>( |
+ std::move(video_capture_system), |
+ base::ThreadTaskRunnerHandle::Get()); |
+ vcm_ = new VideoCaptureManager(std::move(video_capture_provider)); |
const int32_t kNumberOfFakeDevices = 2; |
video_capture_device_factory_->SetToDefaultDevicesConfig( |
kNumberOfFakeDevices); |