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

Unified Diff: remoting/protocol/video_frame_pump_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/video_frame_pump.cc ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_frame_pump_unittest.cc
diff --git a/remoting/protocol/video_frame_pump_unittest.cc b/remoting/protocol/video_frame_pump_unittest.cc
index 34d8f311cdc2076081a40dc83a24f2ab4c71b304..1cbdc3184f15125a6769e966dfe20e5cb439a2fe 100644
--- a/remoting/protocol/video_frame_pump_unittest.cc
+++ b/remoting/protocol/video_frame_pump_unittest.cc
@@ -50,7 +50,7 @@ std::unique_ptr<webrtc::DesktopFrame> CreateUnchangedFrame(
webrtc::SharedMemoryFactory* shared_memory_factory) {
const webrtc::DesktopSize kSize(800, 640);
// updated_region() is already empty by default in new BasicDesktopFrames.
- return base::WrapUnique(new webrtc::BasicDesktopFrame(kSize));
+ return base::MakeUnique<webrtc::BasicDesktopFrame>(kSize);
}
class MockVideoEncoder : public VideoEncoder {
@@ -85,7 +85,7 @@ class ThreadCheckVideoEncoder : public VideoEncoderVerbatim {
std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame,
uint32_t flags) override {
- return base::WrapUnique(new VideoPacket());
+ return base::MakeUnique<VideoPacket>();
}
private:
« no previous file with comments | « remoting/protocol/video_frame_pump.cc ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698