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

Unified Diff: media/filters/audio_decoder_unittest.cc

Issue 1904213003: Convert //media/filters from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove include 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/filters/audio_decoder_selector_unittest.cc ('k') | media/filters/audio_file_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_decoder_unittest.cc
diff --git a/media/filters/audio_decoder_unittest.cc b/media/filters/audio_decoder_unittest.cc
index ec19b80f40d4b148274bf12ffcaae105b74226dd..76ce8ec444b8d1b7590c94391bfe006b94218fae 100644
--- a/media/filters/audio_decoder_unittest.cc
+++ b/media/filters/audio_decoder_unittest.cc
@@ -296,7 +296,7 @@ class AudioDecoderTest : public testing::TestWithParam<DecoderTestData> {
CHECK_LT(i, decoded_audio_.size());
const scoped_refptr<AudioBuffer>& buffer = decoded_audio_[i];
- scoped_ptr<AudioBus> output =
+ std::unique_ptr<AudioBus> output =
AudioBus::Create(buffer->channel_count(), buffer->frame_count());
buffer->ReadFrames(buffer->frame_count(), 0, 0, output.get());
@@ -338,7 +338,7 @@ class AudioDecoderTest : public testing::TestWithParam<DecoderTestData> {
EXPECT_EQ(sample_info.duration, buffer->duration().InMicroseconds());
EXPECT_FALSE(buffer->end_of_stream());
- scoped_ptr<AudioBus> output =
+ std::unique_ptr<AudioBus> output =
AudioBus::Create(buffer->channel_count(), buffer->frame_count());
buffer->ReadFrames(buffer->frame_count(), 0, 0, output.get());
@@ -369,10 +369,10 @@ class AudioDecoderTest : public testing::TestWithParam<DecoderTestData> {
private:
base::MessageLoop message_loop_;
scoped_refptr<DecoderBuffer> data_;
- scoped_ptr<InMemoryUrlProtocol> protocol_;
- scoped_ptr<AudioFileReader> reader_;
+ std::unique_ptr<InMemoryUrlProtocol> protocol_;
+ std::unique_ptr<AudioFileReader> reader_;
- scoped_ptr<AudioDecoder> decoder_;
+ std::unique_ptr<AudioDecoder> decoder_;
bool pending_decode_;
bool pending_reset_;
DecodeStatus last_decode_status_;
« no previous file with comments | « media/filters/audio_decoder_selector_unittest.cc ('k') | media/filters/audio_file_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698