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

Unified Diff: content/browser/renderer_host/media/video_capture_manager_unittest.cc

Issue 2800493002: [Mojo Video Capture] Create abstraction VideoCaptureProvider (Closed)
Patch Set: Incorporated suggestions from PatchSet 2 Created 3 years, 8 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/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);

Powered by Google App Engine
This is Rietveld 408576698