Replace scoped_ptr with unique_ptr in webrtc/modules/video_coding/
BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1721353002 Cr-Commit-Position: refs/heads/master@{#11814}
This commit is contained in:
@ -8,10 +8,10 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include "webrtc/modules/video_coding/include/mock/mock_video_codec_interface.h"
|
||||
#include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h"
|
||||
#include "webrtc/modules/video_coding/codecs/vp8/include/vp8_common_types.h"
|
||||
@ -83,7 +83,7 @@ class EmptyFrameGenerator : public FrameGenerator {
|
||||
private:
|
||||
const int width_;
|
||||
const int height_;
|
||||
rtc::scoped_ptr<VideoFrame> frame_;
|
||||
std::unique_ptr<VideoFrame> frame_;
|
||||
};
|
||||
|
||||
class PacketizationCallback : public VCMPacketizationCallback {
|
||||
@ -193,9 +193,9 @@ class TestVideoSender : public ::testing::Test {
|
||||
PacketizationCallback packetization_callback_;
|
||||
MockEncodedImageCallback post_encode_callback_;
|
||||
// Used by subclassing tests, need to outlive sender_.
|
||||
rtc::scoped_ptr<VideoEncoder> encoder_;
|
||||
rtc::scoped_ptr<VideoSender> sender_;
|
||||
rtc::scoped_ptr<FrameGenerator> generator_;
|
||||
std::unique_ptr<VideoEncoder> encoder_;
|
||||
std::unique_ptr<VideoSender> sender_;
|
||||
std::unique_ptr<FrameGenerator> generator_;
|
||||
};
|
||||
|
||||
class TestVideoSenderWithMockEncoder : public TestVideoSender {
|
||||
|
||||
Reference in New Issue
Block a user