Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Unified Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc

Issue 1631683002: [rtp_rtcp] Dlrr::SubBlock struct renamed to ReceiveTimeInfo (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc
index c7c139c560295aa489947707e7131a09e3b77ae8..1bf0cc4bb601261f33f576042f1a06b8a921ecf7 100644
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr_unittest.cc
@@ -15,16 +15,17 @@
#include "webrtc/modules/rtp_rtcp/source/byte_io.h"
using webrtc::rtcp::Dlrr;
+using webrtc::rtcp::ReceiveTimeInfo;
namespace webrtc {
namespace {
-
const uint32_t kSsrc = 0x12345678;
const uint32_t kLastRR = 0x23344556;
const uint32_t kDelay = 0x33343536;
const uint8_t kBlock[] = {0x05, 0x00, 0x00, 0x03, 0x12, 0x34, 0x56, 0x78,
0x23, 0x34, 0x45, 0x56, 0x33, 0x34, 0x35, 0x36};
const size_t kBlockSizeBytes = sizeof(kBlock);
+} // namespace
TEST(RtcpPacketDlrrTest, Empty) {
Dlrr dlrr;
@@ -49,7 +50,7 @@ TEST(RtcpPacketDlrrTest, Parse) {
EXPECT_TRUE(dlrr.Parse(kBlock, block_length));
EXPECT_EQ(1u, dlrr.sub_blocks().size());
- const Dlrr::SubBlock& block = dlrr.sub_blocks().front();
+ const ReceiveTimeInfo& block = dlrr.sub_blocks().front();
EXPECT_EQ(kSsrc, block.ssrc);
EXPECT_EQ(kLastRR, block.last_rr);
EXPECT_EQ(kDelay, block.delay_since_last_rr);
@@ -97,6 +98,4 @@ TEST(RtcpPacketDlrrTest, CreateAndParseMaxSubBlocks) {
EXPECT_TRUE(parsed.Parse(buffer, block_length));
EXPECT_TRUE(parsed.sub_blocks().size() == Dlrr::kMaxNumberOfDlrrItems);
}
-
-} // namespace
} // namespace webrtc
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698