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]; |
} |