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

Unified Diff: media/capture/video/linux/v4l2_capture_delegate_unittest.cc

Issue 2815643002: Make V4L2CaptureDelegate non-ref-counted (Closed)
Patch Set: mcasas@ comment 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: media/capture/video/linux/v4l2_capture_delegate_unittest.cc
diff --git a/media/capture/video/linux/v4l2_capture_delegate_unittest.cc b/media/capture/video/linux/v4l2_capture_delegate_unittest.cc
index e8f586e2361cbd60fafac09de037befbe40635a3..a22cf59f6e24b7c754fef8ce0c63b070fb0b31f8 100644
--- a/media/capture/video/linux/v4l2_capture_delegate_unittest.cc
+++ b/media/capture/video/linux/v4l2_capture_delegate_unittest.cc
@@ -213,14 +213,15 @@ class V4L2CaptureDelegateTest : public ::testing::Test {
public:
V4L2CaptureDelegateTest()
: device_descriptor_("Device 0", "/dev/video0"),
- delegate_(new V4L2CaptureDelegate(device_descriptor_,
- base::ThreadTaskRunnerHandle::Get(),
- 50)) {}
+ delegate_(base::MakeUnique<V4L2CaptureDelegate>(
+ device_descriptor_,
+ base::ThreadTaskRunnerHandle::Get(),
+ 50)) {}
~V4L2CaptureDelegateTest() override = default;
base::MessageLoop loop_;
VideoCaptureDeviceDescriptor device_descriptor_;
- scoped_refptr<V4L2CaptureDelegate> delegate_;
+ std::unique_ptr<V4L2CaptureDelegate> delegate_;
};
} // anonymous namespace
« no previous file with comments | « media/capture/video/linux/v4l2_capture_delegate.cc ('k') | media/capture/video/linux/video_capture_device_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698