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

Unified Diff: media/base/data_buffer_unittest.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android 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 | « media/base/data_buffer.cc ('k') | media/base/decoder_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_buffer_unittest.cc
diff --git a/media/base/data_buffer_unittest.cc b/media/base/data_buffer_unittest.cc
index 2b18bf02147033afbe1d47afc6dc2829aaaf826f..690b7ec3c8257f14464766812b9d0aaf0ce5a2a0 100644
--- a/media/base/data_buffer_unittest.cc
+++ b/media/base/data_buffer_unittest.cc
@@ -5,6 +5,7 @@
#include "media/base/data_buffer.h"
#include <stdint.h>
+#include <memory>
#include <utility>
#include "base/macros.h"
@@ -35,7 +36,7 @@ TEST(DataBufferTest, Constructor_NonZeroSize) {
TEST(DataBufferTest, Constructor_ScopedArray) {
// Data should be passed and both data and buffer size should be set.
const int kSize = 8;
- scoped_ptr<uint8_t[]> data(new uint8_t[kSize]);
+ std::unique_ptr<uint8_t[]> data(new uint8_t[kSize]);
const uint8_t* kData = data.get();
scoped_refptr<DataBuffer> buffer = new DataBuffer(std::move(data), kSize);
« no previous file with comments | « media/base/data_buffer.cc ('k') | media/base/decoder_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698