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); |