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

Unified Diff: content/browser/renderer_host/media/media_devices_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/media_devices_manager_unittest.cc
diff --git a/content/browser/renderer_host/media/media_devices_manager_unittest.cc b/content/browser/renderer_host/media/media_devices_manager_unittest.cc
index cbad64f8adb4b28fc0f33d138032e942cb439c1c..fbc68f28e79a7ffaf46622d1d214386fe32482e7 100644
--- a/content/browser/renderer_host/media/media_devices_manager_unittest.cc
+++ b/content/browser/renderer_host/media/media_devices_manager_unittest.cc
@@ -13,6 +13,7 @@
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.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/video_capture_manager.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "media/audio/audio_device_name.h"
@@ -148,8 +149,12 @@ class MediaDevicesManagerTest : 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));
- video_capture_manager_ = 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());
+ video_capture_manager_ =
+ new VideoCaptureManager(std::move(video_capture_provider));
media_devices_manager_.reset(new MediaDevicesManager(
audio_system_.get(), video_capture_manager_, nullptr));
}

Powered by Google App Engine
This is Rietveld 408576698