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

Unified Diff: webrtc/media/base/testutils.cc

Issue 1728503002: Replace scoped_ptr with unique_ptr in webrtc/media/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@up1
Patch Set: Created 4 years, 10 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 | « webrtc/media/base/rtpdump_unittest.cc ('k') | webrtc/media/base/videoadapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/testutils.cc
diff --git a/webrtc/media/base/testutils.cc b/webrtc/media/base/testutils.cc
index d28fa0fc6df7fbaa42570810738b4060cea0b1bc..33d0a9727dddc3b8ed8945802d9c58dd466b3cde 100644
--- a/webrtc/media/base/testutils.cc
+++ b/webrtc/media/base/testutils.cc
@@ -12,6 +12,7 @@
#include <math.h>
#include <algorithm>
+#include <memory>
#include "webrtc/base/bytebuffer.h"
#include "webrtc/base/fileutils.h"
@@ -265,7 +266,7 @@ bool LoadPlanarYuvTestImage(const std::string& prefix,
std::stringstream ss;
ss << prefix << "." << width << "x" << height << "_P420.yuv";
- rtc::scoped_ptr<rtc::FileStream> stream(
+ std::unique_ptr<rtc::FileStream> stream(
rtc::Filesystem::OpenFile(rtc::Pathname(
GetTestFilePath(ss.str())), "rb"));
if (!stream) {
« no previous file with comments | « webrtc/media/base/rtpdump_unittest.cc ('k') | webrtc/media/base/videoadapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698