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

Unified Diff: media/base/audio_block_fifo_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: . 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698