Index: webrtc/modules/audio_processing/vad/standalone_vad_unittest.cc |
diff --git a/webrtc/modules/audio_processing/vad/standalone_vad_unittest.cc b/webrtc/modules/audio_processing/vad/standalone_vad_unittest.cc |
index 1d1dcc70662db94b3cd0fc9ebbdd4df10e2e594b..482a20a8989ff2967aba4d814cbe33763e1237c1 100644 |
--- a/webrtc/modules/audio_processing/vad/standalone_vad_unittest.cc |
+++ b/webrtc/modules/audio_processing/vad/standalone_vad_unittest.cc |
@@ -12,15 +12,16 @@ |
#include <string.h> |
+#include <memory> |
+ |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "webrtc/base/scoped_ptr.h" |
#include "webrtc/modules/include/module_common_types.h" |
#include "webrtc/test/testsupport/fileutils.h" |
namespace webrtc { |
TEST(StandaloneVadTest, Api) { |
- rtc::scoped_ptr<StandaloneVad> vad(StandaloneVad::Create()); |
+ std::unique_ptr<StandaloneVad> vad(StandaloneVad::Create()); |
int16_t data[kLength10Ms] = {0}; |
// Valid frame length (for 32 kHz rate), but not what the VAD is expecting. |
@@ -59,7 +60,7 @@ TEST(StandaloneVadTest, DISABLED_ActivityDetection) { |
#else |
TEST(StandaloneVadTest, ActivityDetection) { |
#endif |
- rtc::scoped_ptr<StandaloneVad> vad(StandaloneVad::Create()); |
+ std::unique_ptr<StandaloneVad> vad(StandaloneVad::Create()); |
const size_t kDataLength = kLength10Ms; |
int16_t data[kDataLength] = {0}; |