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

Unified Diff: components/audio_modem/audio_recorder_unittest.cc

Issue 1921973002: Convert //components/[a-e]* 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 | « components/audio_modem/audio_recorder_impl.cc ('k') | components/audio_modem/modem_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/audio_recorder_unittest.cc
diff --git a/components/audio_modem/audio_recorder_unittest.cc b/components/audio_modem/audio_recorder_unittest.cc
index 08b9a52b4aa9d8f82826535c9ec2c260b395d41f..314ae8233a10bc7f0dc68160bfe0ecd71a93c187 100644
--- a/components/audio_modem/audio_recorder_unittest.cc
+++ b/components/audio_modem/audio_recorder_unittest.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/bind.h"
@@ -63,7 +64,7 @@ class TestAudioInputStream : public media::AudioInputStream {
void SimulateRecording() {
const int fpb = params_.frames_per_buffer();
for (int i = 0; i < buffer_->frames() / fpb; ++i) {
- scoped_ptr<media::AudioBus> source = media::AudioBus::Create(2, fpb);
+ std::unique_ptr<media::AudioBus> source = media::AudioBus::Create(2, fpb);
buffer_->CopyPartialFramesTo(i * fpb, fpb, 0, source.get());
callback_->OnData(this, source.get(), fpb, 1.0);
}
@@ -71,7 +72,7 @@ class TestAudioInputStream : public media::AudioInputStream {
AudioInputCallback* callback_;
media::AudioParameters params_;
- scoped_ptr<media::AudioBus> buffer_;
+ std::unique_ptr<media::AudioBus> buffer_;
DISALLOW_COPY_AND_ASSIGN(TestAudioInputStream);
};
@@ -204,7 +205,7 @@ class AudioRecorderTest : public testing::Test {
std::string received_samples_;
- scoped_ptr<base::RunLoop> run_loop_;
+ std::unique_ptr<base::RunLoop> run_loop_;
};
« no previous file with comments | « components/audio_modem/audio_recorder_impl.cc ('k') | components/audio_modem/modem_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698