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

Unified Diff: remoting/protocol/connection_unittest.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « remoting/protocol/chromium_port_allocator_factory.cc ('k') | remoting/protocol/fake_authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « remoting/protocol/chromium_port_allocator_factory.cc ('k') | remoting/protocol/fake_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698