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

Unified Diff: webrtc/test/rtp_file_writer_unittest.cc

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 8 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/test/rtp_file_reader_unittest.cc ('k') | webrtc/test/rtp_rtcp_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/rtp_file_writer_unittest.cc
diff --git a/webrtc/test/rtp_file_writer_unittest.cc b/webrtc/test/rtp_file_writer_unittest.cc
index 2c7c88cc3f370675b8f8dd58fec57347e4ede433..3287f976c6ce31124a370b874b3c80fcd8cdd9f8 100644
--- a/webrtc/test/rtp_file_writer_unittest.cc
+++ b/webrtc/test/rtp_file_writer_unittest.cc
@@ -10,8 +10,9 @@
#include <string.h>
+#include <memory>
+
#include "testing/gtest/include/gtest/gtest.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/test/rtp_file_reader.h"
#include "webrtc/test/rtp_file_writer.h"
#include "webrtc/test/testsupport/fileutils.h"
@@ -43,7 +44,7 @@ class RtpFileWriterTest : public ::testing::Test {
void VerifyFileContents(int expected_packets) {
ASSERT_TRUE(rtp_writer_.get() == NULL)
<< "Must call CloseOutputFile before VerifyFileContents";
- rtc::scoped_ptr<test::RtpFileReader> rtp_reader(
+ std::unique_ptr<test::RtpFileReader> rtp_reader(
test::RtpFileReader::Create(test::RtpFileReader::kRtpDump, filename_));
ASSERT_TRUE(rtp_reader.get() != NULL);
test::RtpPacket packet;
@@ -61,7 +62,7 @@ class RtpFileWriterTest : public ::testing::Test {
}
private:
- rtc::scoped_ptr<test::RtpFileWriter> rtp_writer_;
+ std::unique_ptr<test::RtpFileWriter> rtp_writer_;
std::string filename_;
};
« no previous file with comments | « webrtc/test/rtp_file_reader_unittest.cc ('k') | webrtc/test/rtp_rtcp_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698