Replace scoped_ptr with unique_ptr in webrtc/audio/
BUG=webrtc:5520
Review URL: https://codereview.webrtc.org/1706183002
Cr-Commit-Position: refs/heads/master@{#11723}
diff --git a/webrtc/audio/audio_state_unittest.cc b/webrtc/audio/audio_state_unittest.cc
index 11fbdb4..b0e2bc4 100644
--- a/webrtc/audio/audio_state_unittest.cc
+++ b/webrtc/audio/audio_state_unittest.cc
@@ -8,10 +8,11 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/audio/audio_state.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/test/mock_voice_engine.h"
namespace webrtc {
@@ -44,20 +45,20 @@
TEST(AudioStateTest, ConstructDestruct) {
ConfigHelper helper;
- rtc::scoped_ptr<internal::AudioState> audio_state(
+ std::unique_ptr<internal::AudioState> audio_state(
new internal::AudioState(helper.config()));
}
TEST(AudioStateTest, GetVoiceEngine) {
ConfigHelper helper;
- rtc::scoped_ptr<internal::AudioState> audio_state(
+ std::unique_ptr<internal::AudioState> audio_state(
new internal::AudioState(helper.config()));
EXPECT_EQ(audio_state->voice_engine(), &helper.voice_engine());
}
TEST(AudioStateTest, TypingNoiseDetected) {
ConfigHelper helper;
- rtc::scoped_ptr<internal::AudioState> audio_state(
+ std::unique_ptr<internal::AudioState> audio_state(
new internal::AudioState(helper.config()));
VoiceEngineObserver* voe_observer =
static_cast<VoiceEngineObserver*>(audio_state.get());