Index: remoting/protocol/connection_unittest.cc |
diff --git a/remoting/protocol/connection_unittest.cc b/remoting/protocol/connection_unittest.cc |
index 380bba3adc1630b841627737566fa7ed00235c3c..8ee561196a4f5c8529231767869f280b2bf6e5f5 100644 |
--- a/remoting/protocol/connection_unittest.cc |
+++ b/remoting/protocol/connection_unittest.cc |
@@ -350,7 +350,7 @@ TEST_P(ConnectionTest, Video) { |
std::unique_ptr<VideoStream> video_stream = |
host_connection_->StartVideoStream( |
- base::WrapUnique(new TestScreenCapturer())); |
+ base::MakeUnique<TestScreenCapturer>()); |
WaitFirstVideoFrame(); |
} |
@@ -405,7 +405,7 @@ TEST_P(ConnectionTest, VideoStats) { |
std::unique_ptr<VideoStream> video_stream = |
host_connection_->StartVideoStream( |
- base::WrapUnique(new TestScreenCapturer())); |
+ base::MakeUnique<TestScreenCapturer>()); |
// Simulate an input invent injected at the start. |
video_stream->OnInputEventReceived(start_time.ToInternalValue()); |