Convert logs in rtp rtcp module from WEBRTC_TRACE into LOG.
Clean some logs and add asserts in the way. BUG=3153 R=mflodman@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/11129004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5861 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -34,7 +34,7 @@ class RtpRtcpAPITest : public ::testing::Test {
|
||||
configuration.clock = &fake_clock;
|
||||
module = RtpRtcp::CreateRtpRtcp(configuration);
|
||||
rtp_payload_registry_.reset(new RTPPayloadRegistry(
|
||||
test_id, RTPPayloadStrategy::CreateStrategy(true)));
|
||||
RTPPayloadStrategy::CreateStrategy(true)));
|
||||
rtp_receiver_.reset(RtpReceiver::CreateAudioReceiver(
|
||||
test_id, &fake_clock, NULL, NULL, NULL, rtp_payload_registry_.get()));
|
||||
}
|
||||
|
||||
@ -122,9 +122,9 @@ class RtpRtcpAudioTest : public ::testing::Test {
|
||||
receive_statistics2_.reset(ReceiveStatistics::Create(&fake_clock));
|
||||
|
||||
rtp_payload_registry1_.reset(new RTPPayloadRegistry(
|
||||
test_id, RTPPayloadStrategy::CreateStrategy(true)));
|
||||
RTPPayloadStrategy::CreateStrategy(true)));
|
||||
rtp_payload_registry2_.reset(new RTPPayloadRegistry(
|
||||
test_id, RTPPayloadStrategy::CreateStrategy(true)));
|
||||
RTPPayloadStrategy::CreateStrategy(true)));
|
||||
|
||||
RtpRtcp::Configuration configuration;
|
||||
configuration.id = test_id;
|
||||
|
||||
@ -116,9 +116,9 @@ class RtpRtcpRtcpTest : public ::testing::Test {
|
||||
configuration.intra_frame_callback = myRTCPFeedback1;
|
||||
|
||||
rtp_payload_registry1_.reset(new RTPPayloadRegistry(
|
||||
test_id, RTPPayloadStrategy::CreateStrategy(true)));
|
||||
RTPPayloadStrategy::CreateStrategy(true)));
|
||||
rtp_payload_registry2_.reset(new RTPPayloadRegistry(
|
||||
test_id, RTPPayloadStrategy::CreateStrategy(true)));
|
||||
RTPPayloadStrategy::CreateStrategy(true)));
|
||||
|
||||
module1 = RtpRtcp::CreateRtpRtcp(configuration);
|
||||
|
||||
@ -280,7 +280,6 @@ TEST_F(RtpRtcpRtcpTest, RTCP) {
|
||||
reportBlock.lastSR = 6;
|
||||
|
||||
// Set report blocks.
|
||||
EXPECT_EQ(-1, module1->AddRTCPReportBlock(test_CSRC[0], NULL));
|
||||
EXPECT_EQ(0, module1->AddRTCPReportBlock(test_CSRC[0], &reportBlock));
|
||||
|
||||
reportBlock.lastSR= 7;
|
||||
@ -319,7 +318,6 @@ TEST_F(RtpRtcpRtcpTest, RTCP) {
|
||||
|
||||
// get all report blocks
|
||||
std::vector<RTCPReportBlock> report_blocks;
|
||||
EXPECT_EQ(-1, module1->RemoteRTCPStat(NULL));
|
||||
EXPECT_EQ(0, module1->RemoteRTCPStat(&report_blocks));
|
||||
ASSERT_EQ(1u, report_blocks.size());
|
||||
const RTCPReportBlock& reportBlockReceived = report_blocks[0];
|
||||
|
||||
@ -28,7 +28,7 @@ class RtpRtcpVideoTest : public ::testing::Test {
|
||||
protected:
|
||||
RtpRtcpVideoTest()
|
||||
: test_id_(123),
|
||||
rtp_payload_registry_(0, RTPPayloadStrategy::CreateStrategy(false)),
|
||||
rtp_payload_registry_(RTPPayloadStrategy::CreateStrategy(false)),
|
||||
test_ssrc_(3456),
|
||||
test_timestamp_(4567),
|
||||
test_sequence_number_(2345),
|
||||
|
||||
Reference in New Issue
Block a user