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

Unified Diff: webrtc/modules/audio_processing/audio_processing_performance_unittest.cc

Issue 1710483002: Replace scoped_ptr with unique_ptr in webrtc/modules/audio_processing/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 10 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: webrtc/modules/audio_processing/audio_processing_performance_unittest.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc b/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc
index 093c03e89fe51ce8136c0523687470bda7b5fdf7..a4a8351a17a15fbda4147116e3d8d4126dcb9041 100644
--- a/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc
+++ b/webrtc/modules/audio_processing/audio_processing_performance_unittest.cc
@@ -12,6 +12,7 @@
#include <math.h>
#include <algorithm>
+#include <memory>
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
@@ -657,19 +658,19 @@ class CallSimulator : public ::testing::TestWithParam<SimulationConfig> {
}
// Event handler for the test.
- const rtc::scoped_ptr<EventWrapper> test_complete_;
+ const std::unique_ptr<EventWrapper> test_complete_;
// Thread related variables.
- rtc::scoped_ptr<rtc::PlatformThread> render_thread_;
- rtc::scoped_ptr<rtc::PlatformThread> capture_thread_;
+ std::unique_ptr<rtc::PlatformThread> render_thread_;
+ std::unique_ptr<rtc::PlatformThread> capture_thread_;
Random rand_gen_;
- rtc::scoped_ptr<AudioProcessing> apm_;
+ std::unique_ptr<AudioProcessing> apm_;
const SimulationConfig simulation_config_;
FrameCounters frame_counters_;
LockedFlag capture_call_checker_;
- rtc::scoped_ptr<TimedThreadApiProcessor> render_thread_state_;
- rtc::scoped_ptr<TimedThreadApiProcessor> capture_thread_state_;
+ std::unique_ptr<TimedThreadApiProcessor> render_thread_state_;
+ std::unique_ptr<TimedThreadApiProcessor> capture_thread_state_;
};
// Implements the callback functionality for the threads.

Powered by Google App Engine
This is Rietveld 408576698