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

Unified Diff: media/cast/test/sender.cc

Issue 2253943004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « media/capture/video/fake_video_capture_device_unittest.cc ('k') | media/cast/test/simulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/sender.cc
diff --git a/media/cast/test/sender.cc b/media/cast/test/sender.cc
index b2be7930089da4f7ccd594b2b8316b37da80c78c..102794163dada095b38095a6336149c5f8b7f091 100644
--- a/media/cast/test/sender.cc
+++ b/media/cast/test/sender.cc
@@ -265,10 +265,10 @@ int main(int argc, char** argv) {
std::unique_ptr<media::cast::CastTransport> transport_sender =
media::cast::CastTransport::Create(
cast_environment->Clock(), base::TimeDelta::FromSeconds(1),
- base::WrapUnique(new TransportClient(cast_environment->logger())),
- base::WrapUnique(new media::cast::UdpTransport(
+ base::MakeUnique<TransportClient>(cast_environment->logger()),
+ base::MakeUnique<media::cast::UdpTransport>(
nullptr, io_message_loop.task_runner(), net::IPEndPoint(),
- remote_endpoint, base::Bind(&UpdateCastTransportStatus))),
+ remote_endpoint, base::Bind(&UpdateCastTransportStatus)),
io_message_loop.task_runner());
// Set up event subscribers.
« no previous file with comments | « media/capture/video/fake_video_capture_device_unittest.cc ('k') | media/cast/test/simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698