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

Unified Diff: media/base/audio_push_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: 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/audio_push_fifo.h ('k') | media/base/audio_renderer_mixer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_push_fifo_unittest.cc
diff --git a/media/base/audio_push_fifo_unittest.cc b/media/base/audio_push_fifo_unittest.cc
index 8d815fd613fa2888264c63c90911aaca782780ea..d3d5f893ae7e0a12141dbc9083e2a95e0904cd61 100644
--- a/media/base/audio_push_fifo_unittest.cc
+++ b/media/base/audio_push_fifo_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <limits>
+#include <memory>
#include <vector>
#include "base/bind.h"
@@ -56,7 +57,7 @@ class AudioPushFifoTest : public testing::TestWithParam<int> {
const int num_iterations = GetNumPushTestIterations(input_chunk_size);
int sample_value = 0;
- const scoped_ptr<AudioBus> audio_bus =
+ const std::unique_ptr<AudioBus> audio_bus =
AudioBus::Create(1, input_chunk_size);
for (int i = 0; i < num_iterations; ++i) {
@@ -115,7 +116,7 @@ class AudioPushFifoTest : public testing::TestWithParam<int> {
return begin + rand_offset;
}
- scoped_ptr<AudioPushFifo> fifo_;
+ std::unique_ptr<AudioPushFifo> fifo_;
std::vector<OutputChunkResult> results_;
private:
@@ -201,7 +202,7 @@ TEST_P(AudioPushFifoTest, PushArbitraryNumbersOfFramesAtATime) {
// Create an AudioBus of a random length, populated with sample values.
const int input_chunk_size = GetRandomInRange(1, 1920);
- const scoped_ptr<AudioBus> audio_bus =
+ const std::unique_ptr<AudioBus> audio_bus =
AudioBus::Create(1, input_chunk_size);
for (int j = 0; j < audio_bus->frames(); ++j)
audio_bus->channel(0)[j] = static_cast<float>(sample_value++);
« no previous file with comments | « media/base/audio_push_fifo.h ('k') | media/base/audio_renderer_mixer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698