Use base/scoped_ptr.h; system_wrappers/interface/scoped_ptr.h is going away
BUG=
R=andrew@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/36229004
Cr-Commit-Position: refs/heads/master@{#8517}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8517 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_processing/test/process_test.cc b/webrtc/modules/audio_processing/test/process_test.cc
index d1fa032..d32dcb8 100644
--- a/webrtc/modules/audio_processing/test/process_test.cc
+++ b/webrtc/modules/audio_processing/test/process_test.cc
@@ -17,12 +17,12 @@
#include <algorithm>
+#include "webrtc/base/scoped_ptr.h"
#include "webrtc/common.h"
#include "webrtc/modules/audio_processing/include/audio_processing.h"
#include "webrtc/modules/audio_processing/test/test_utils.h"
#include "webrtc/modules/interface/module_common_types.h"
#include "webrtc/system_wrappers/interface/cpu_features_wrapper.h"
-#include "webrtc/system_wrappers/interface/scoped_ptr.h"
#include "webrtc/system_wrappers/interface/tick_util.h"
#include "webrtc/test/testsupport/fileutils.h"
#include "webrtc/test/testsupport/perf_test.h"
@@ -144,7 +144,7 @@
printf("Try `process_test --help' for more information.\n\n");
}
- scoped_ptr<AudioProcessing> apm(AudioProcessing::Create());
+ rtc::scoped_ptr<AudioProcessing> apm(AudioProcessing::Create());
ASSERT_TRUE(apm.get() != NULL);
const char* pb_filename = NULL;
@@ -489,8 +489,8 @@
FILE* aecm_echo_path_in_file = NULL;
FILE* aecm_echo_path_out_file = NULL;
- scoped_ptr<WavWriter> output_wav_file;
- scoped_ptr<RawFile> output_raw_file;
+ rtc::scoped_ptr<WavWriter> output_wav_file;
+ rtc::scoped_ptr<RawFile> output_raw_file;
if (pb_filename) {
pb_file = OpenFile(pb_filename, "rb");
@@ -532,7 +532,7 @@
const size_t path_size =
apm->echo_control_mobile()->echo_path_size_bytes();
- scoped_ptr<char[]> echo_path(new char[path_size]);
+ rtc::scoped_ptr<char[]> echo_path(new char[path_size]);
ASSERT_EQ(path_size, fread(echo_path.get(),
sizeof(char),
path_size,
@@ -574,8 +574,8 @@
// but for now we want to share the variables.
if (pb_file) {
Event event_msg;
- scoped_ptr<ChannelBuffer<float> > reverse_cb;
- scoped_ptr<ChannelBuffer<float> > primary_cb;
+ rtc::scoped_ptr<ChannelBuffer<float> > reverse_cb;
+ rtc::scoped_ptr<ChannelBuffer<float> > primary_cb;
int output_sample_rate = 32000;
AudioProcessing::ChannelLayout output_layout = AudioProcessing::kMono;
while (ReadMessageFromFile(pb_file, &event_msg)) {
@@ -1054,7 +1054,7 @@
if (aecm_echo_path_out_file != NULL) {
const size_t path_size =
apm->echo_control_mobile()->echo_path_size_bytes();
- scoped_ptr<char[]> echo_path(new char[path_size]);
+ rtc::scoped_ptr<char[]> echo_path(new char[path_size]);
apm->echo_control_mobile()->GetEchoPath(echo_path.get(), path_size);
ASSERT_EQ(path_size, fwrite(echo_path.get(),
sizeof(char),