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

Unified Diff: media/base/audio_shifter_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: . 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
Index: media/base/audio_shifter_unittest.cc
diff --git a/media/base/audio_shifter_unittest.cc b/media/base/audio_shifter_unittest.cc
index 15447042e5a28f0d53669a2a9a0dbb4f98b7c995..c6de5920765cc6225110aa76b6e1d585975272fe 100644
--- a/media/base/audio_shifter_unittest.cc
+++ b/media/base/audio_shifter_unittest.cc
@@ -5,6 +5,7 @@
#include <stddef.h>
#include <cmath>
+#include <memory>
#include <vector>
#include "media/base/audio_bus.h"
@@ -41,8 +42,8 @@ class AudioShifterTest :
input_rate_ = rate;
}
- scoped_ptr<AudioBus> CreateTestInput() {
- scoped_ptr<AudioBus> input(AudioBus::Create(2, input_size_));
+ std::unique_ptr<AudioBus> CreateTestInput() {
+ std::unique_ptr<AudioBus> input(AudioBus::Create(2, input_size_));
for (size_t i = 0; i < input_size_; i++) {
input->channel(0)[i] = input->channel(1)[i] = input_sample_n_;
input_sample_n_++;
@@ -146,8 +147,8 @@ class AudioShifterTest :
base::TimeTicks time_to_push_;
base::TimeTicks time_to_pull_;
base::TimeTicks now_;
- scoped_ptr<AudioBus> test_input_;
- scoped_ptr<AudioBus> test_output_;
+ std::unique_ptr<AudioBus> test_input_;
+ std::unique_ptr<AudioBus> test_output_;
std::vector<base::TimeTicks> silent_outputs_;
std::vector<base::TimeTicks> skip_outputs_;
std::vector<base::TimeTicks> marker_outputs_;

Powered by Google App Engine
This is Rietveld 408576698