Use base/scoped_ptr.h; system_wrappers/interface/scoped_ptr.h is going away
BUG= R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/36229004 Cr-Commit-Position: refs/heads/master@{#8517} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8517 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -38,7 +38,7 @@ int LoopBackTransport::SendPacket(int channel, const void* data, size_t len) {
|
||||
}
|
||||
}
|
||||
RTPHeader header;
|
||||
scoped_ptr<RtpHeaderParser> parser(RtpHeaderParser::Create());
|
||||
rtc::scoped_ptr<RtpHeaderParser> parser(RtpHeaderParser::Create());
|
||||
if (!parser->Parse(static_cast<const uint8_t*>(data), len, &header)) {
|
||||
return -1;
|
||||
}
|
||||
@ -102,9 +102,9 @@ class RtpRtcpAPITest : public ::testing::Test {
|
||||
}
|
||||
|
||||
int test_id;
|
||||
scoped_ptr<RTPPayloadRegistry> rtp_payload_registry_;
|
||||
scoped_ptr<RtpReceiver> rtp_receiver_;
|
||||
scoped_ptr<RtpRtcp> module_;
|
||||
rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry_;
|
||||
rtc::scoped_ptr<RtpReceiver> rtp_receiver_;
|
||||
rtc::scoped_ptr<RtpRtcp> module_;
|
||||
uint32_t test_ssrc_;
|
||||
uint32_t test_timestamp_;
|
||||
uint16_t test_sequence_number_;
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include "webrtc/common_types.h"
|
||||
#include "webrtc/modules/rtp_rtcp/interface/receive_statistics.h"
|
||||
#include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h"
|
||||
@ -16,7 +17,6 @@
|
||||
#include "webrtc/modules/rtp_rtcp/interface/rtp_receiver.h"
|
||||
#include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h"
|
||||
#include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
|
||||
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
|
||||
@ -147,12 +147,12 @@ class RtpRtcpAudioTest : public ::testing::Test {
|
||||
int test_id;
|
||||
RtpRtcp* module1;
|
||||
RtpRtcp* module2;
|
||||
scoped_ptr<ReceiveStatistics> receive_statistics1_;
|
||||
scoped_ptr<ReceiveStatistics> receive_statistics2_;
|
||||
scoped_ptr<RtpReceiver> rtp_receiver1_;
|
||||
scoped_ptr<RtpReceiver> rtp_receiver2_;
|
||||
scoped_ptr<RTPPayloadRegistry> rtp_payload_registry1_;
|
||||
scoped_ptr<RTPPayloadRegistry> rtp_payload_registry2_;
|
||||
rtc::scoped_ptr<ReceiveStatistics> receive_statistics1_;
|
||||
rtc::scoped_ptr<ReceiveStatistics> receive_statistics2_;
|
||||
rtc::scoped_ptr<RtpReceiver> rtp_receiver1_;
|
||||
rtc::scoped_ptr<RtpReceiver> rtp_receiver2_;
|
||||
rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry1_;
|
||||
rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry2_;
|
||||
VerifyingAudioReceiver* data_receiver1;
|
||||
VerifyingAudioReceiver* data_receiver2;
|
||||
LoopBackTransport* transport1;
|
||||
|
||||
@ -179,14 +179,14 @@ class RtpRtcpRtcpTest : public ::testing::Test {
|
||||
}
|
||||
|
||||
int test_id;
|
||||
scoped_ptr<TestRtpFeedback> rtp_feedback1_;
|
||||
scoped_ptr<TestRtpFeedback> rtp_feedback2_;
|
||||
scoped_ptr<ReceiveStatistics> receive_statistics1_;
|
||||
scoped_ptr<ReceiveStatistics> receive_statistics2_;
|
||||
scoped_ptr<RTPPayloadRegistry> rtp_payload_registry1_;
|
||||
scoped_ptr<RTPPayloadRegistry> rtp_payload_registry2_;
|
||||
scoped_ptr<RtpReceiver> rtp_receiver1_;
|
||||
scoped_ptr<RtpReceiver> rtp_receiver2_;
|
||||
rtc::scoped_ptr<TestRtpFeedback> rtp_feedback1_;
|
||||
rtc::scoped_ptr<TestRtpFeedback> rtp_feedback2_;
|
||||
rtc::scoped_ptr<ReceiveStatistics> receive_statistics1_;
|
||||
rtc::scoped_ptr<ReceiveStatistics> receive_statistics2_;
|
||||
rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry1_;
|
||||
rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry2_;
|
||||
rtc::scoped_ptr<RtpReceiver> rtp_receiver1_;
|
||||
rtc::scoped_ptr<RtpReceiver> rtp_receiver2_;
|
||||
RtpRtcp* module1;
|
||||
RtpRtcp* module2;
|
||||
TestRtpReceiver* receiver;
|
||||
|
||||
@ -130,9 +130,9 @@ class RtpRtcpVideoTest : public ::testing::Test {
|
||||
}
|
||||
|
||||
int test_id_;
|
||||
scoped_ptr<ReceiveStatistics> receive_statistics_;
|
||||
rtc::scoped_ptr<ReceiveStatistics> receive_statistics_;
|
||||
RTPPayloadRegistry rtp_payload_registry_;
|
||||
scoped_ptr<RtpReceiver> rtp_receiver_;
|
||||
rtc::scoped_ptr<RtpReceiver> rtp_receiver_;
|
||||
RtpRtcp* video_module_;
|
||||
LoopBackTransport* transport_;
|
||||
TestRtpReceiver* receiver_;
|
||||
@ -173,7 +173,7 @@ TEST_F(RtpRtcpVideoTest, PaddingOnlyFrames) {
|
||||
kPadSize);
|
||||
++seq_num;
|
||||
RTPHeader header;
|
||||
scoped_ptr<RtpHeaderParser> parser(RtpHeaderParser::Create());
|
||||
rtc::scoped_ptr<RtpHeaderParser> parser(RtpHeaderParser::Create());
|
||||
EXPECT_TRUE(parser->Parse(padding_packet, packet_size, &header));
|
||||
PayloadUnion payload_specific;
|
||||
EXPECT_TRUE(rtp_payload_registry_.GetPayloadSpecifics(header.payloadType,
|
||||
|
||||
Reference in New Issue
Block a user