Index: webrtc/audio/audio_state_unittest.cc |
diff --git a/webrtc/audio/audio_state_unittest.cc b/webrtc/audio/audio_state_unittest.cc |
index 11fbdb4a86dd6173d5b7e0d7a21ac0650c0da70f..b0e2bc4c03221ec2fa6a3ba29de5f6bae274f021 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, Create) { |
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()); |