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

Unified Diff: media/audio/audio_power_monitor_unittest.cc

Issue 1911913002: Convert //media/audio from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/audio/audio_output_proxy_unittest.cc ('k') | media/audio/clockless_audio_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/clockless_audio_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698