Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/test/
BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1695763004 Cr-Commit-Position: refs/heads/master@{#11618}
This commit is contained in:
@ -10,6 +10,8 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/test/PacketLossTest.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "webrtc/common.h"
|
||||
#include "webrtc/test/testsupport/fileutils.h"
|
||||
@ -126,7 +128,7 @@ void PacketLossTest::Perform() {
|
||||
#ifndef WEBRTC_CODEC_OPUS
|
||||
return;
|
||||
#else
|
||||
rtc::scoped_ptr<AudioCodingModule> acm(AudioCodingModule::Create(0));
|
||||
std::unique_ptr<AudioCodingModule> acm(AudioCodingModule::Create(0));
|
||||
|
||||
int codec_id = acm->Codec("opus", 48000, channels_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user