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

Unified Diff: webrtc/tools/agc/agc_harness.cc

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
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 | « webrtc/tools/agc/activity_metric.cc ('k') | webrtc/tools/e2e_quality/audio/audio_e2e_harness.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/agc/agc_harness.cc
diff --git a/webrtc/tools/agc/agc_harness.cc b/webrtc/tools/agc/agc_harness.cc
index 0d35d4b56aa81df4cb6490f34a6911c999ab81e5..17919629b91ccc5276d46032df298fe7e484bf1a 100644
--- a/webrtc/tools/agc/agc_harness.cc
+++ b/webrtc/tools/agc/agc_harness.cc
@@ -10,10 +10,11 @@
// Refer to kUsage below for a description.
+#include <memory>
+
#include "gflags/gflags.h"
#include "webrtc/base/checks.h"
#include "webrtc/base/format_macros.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/system_wrappers/include/sleep.h"
#include "webrtc/system_wrappers/include/trace.h"
#include "webrtc/test/channel_transport/channel_transport.h"
@@ -217,13 +218,13 @@ class AgcVoiceEngine {
int channel_;
int capture_idx_;
int render_idx_;
- rtc::scoped_ptr<test::VoiceChannelTransport> channel_transport_;
+ std::unique_ptr<test::VoiceChannelTransport> channel_transport_;
};
void RunHarness() {
- rtc::scoped_ptr<AgcVoiceEngine> voe1(new AgcVoiceEngine(
+ std::unique_ptr<AgcVoiceEngine> voe1(new AgcVoiceEngine(
FLAGS_legacy_agc, 2000, 2000, FLAGS_capture1, FLAGS_render1));
- rtc::scoped_ptr<AgcVoiceEngine> voe2;
+ std::unique_ptr<AgcVoiceEngine> voe2;
if (FLAGS_parallel) {
voe2.reset(new AgcVoiceEngine(!FLAGS_legacy_agc, 3000, 3000, FLAGS_capture2,
FLAGS_render2));
« no previous file with comments | « webrtc/tools/agc/activity_metric.cc ('k') | webrtc/tools/e2e_quality/audio/audio_e2e_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698