Index: media/base/audio_block_fifo_unittest.cc |
diff --git a/media/base/audio_block_fifo_unittest.cc b/media/base/audio_block_fifo_unittest.cc |
index d9cfb7e3b8db805cd88e6647941a20946173f51a..d671e836ad1d420c1ed0881711fb07c2a3c39a6b 100644 |
--- a/media/base/audio_block_fifo_unittest.cc |
+++ b/media/base/audio_block_fifo_unittest.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include <stdint.h> |
+#include <memory> |
#include "base/macros.h" |
#include "base/time/time.h" |
@@ -33,7 +34,7 @@ class AudioBlockFifoTest : public testing::Test { |
DCHECK_LE(frames_to_push, fifo->GetUnfilledFrames()); |
const int bytes_per_sample = 2; |
const int data_byte_size = bytes_per_sample * channels * frames_to_push; |
- scoped_ptr<uint8_t[]> data(new uint8_t[data_byte_size]); |
+ std::unique_ptr<uint8_t[]> data(new uint8_t[data_byte_size]); |
memset(data.get(), 1, data_byte_size); |
fifo->Push(data.get(), frames_to_push, bytes_per_sample); |
} |