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

Unified Diff: media/base/audio_discard_helper_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_converter_unittest.cc ('k') | media/base/audio_fifo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_discard_helper_unittest.cc
diff --git a/media/base/audio_discard_helper_unittest.cc b/media/base/audio_discard_helper_unittest.cc
index 692f06576cb2a0165131adc45b08aad90ff9c09d..3763b84004199826973e39b332f1443d2ec94471 100644
--- a/media/base/audio_discard_helper_unittest.cc
+++ b/media/base/audio_discard_helper_unittest.cc
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "media/base/audio_discard_helper.h"
+
#include <stddef.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "media/base/audio_buffer.h"
#include "media/base/audio_bus.h"
-#include "media/base/audio_discard_helper.h"
#include "media/base/decoder_buffer.h"
#include "media/base/test_helpers.h"
#include "media/base/timestamp_constants.h"
@@ -42,7 +44,8 @@ static float ExtractDecodedData(const scoped_refptr<AudioBuffer>& buffer,
int index) {
// This is really inefficient, but we can't access the raw AudioBuffer if any
// start trimming has been applied.
- scoped_ptr<AudioBus> temp_bus = AudioBus::Create(buffer->channel_count(), 1);
+ std::unique_ptr<AudioBus> temp_bus =
+ AudioBus::Create(buffer->channel_count(), 1);
buffer->ReadFrames(1, index, 0, temp_bus.get());
return temp_bus->channel(0)[0];
}
« no previous file with comments | « media/base/audio_converter_unittest.cc ('k') | media/base/audio_fifo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698