| Index: media/audio/audio_power_monitor_unittest.cc
|
| diff --git a/media/audio/audio_power_monitor_unittest.cc b/media/audio/audio_power_monitor_unittest.cc
|
| index 35ef8fabe5f742e1706d19d69efc1efb2c476fad..099cfa902078067e75a5ee95c58b1301d741df62 100644
|
| --- a/media/audio/audio_power_monitor_unittest.cc
|
| +++ b/media/audio/audio_power_monitor_unittest.cc
|
| @@ -5,6 +5,7 @@
|
| #include "media/audio/audio_power_monitor.h"
|
|
|
| #include <limits>
|
| +#include <memory>
|
|
|
| #include "base/macros.h"
|
| #include "base/time/time.h"
|
| @@ -76,7 +77,7 @@ class TestScenario {
|
|
|
| float expected_power_;
|
| bool expected_clipped_;
|
| - scoped_ptr<AudioBus> bus_;
|
| + std::unique_ptr<AudioBus> bus_;
|
| };
|
|
|
| // Value printer for TestScenario. Required to prevent Valgrind "access to
|
| @@ -187,7 +188,7 @@ class AudioPowerMonitorTest : public ::testing::TestWithParam<TestScenario> {
|
| TEST_P(AudioPowerMonitorTest, MeasuresPowerOfSignal) {
|
| const TestScenario& scenario = GetParam();
|
|
|
| - scoped_ptr<AudioBus> zeroed_bus =
|
| + std::unique_ptr<AudioBus> zeroed_bus =
|
| AudioBus::Create(scenario.data().channels(), scenario.data().frames());
|
| zeroed_bus->Zero();
|
|
|
|
|