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

Unified Diff: media/cast/net/rtp/rtp_packetizer_unittest.cc

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 5 years 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 | « media/cast/net/rtp/rtp_packetizer.cc ('k') | media/cast/net/rtp/rtp_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtp/rtp_packetizer_unittest.cc
diff --git a/media/cast/net/rtp/rtp_packetizer_unittest.cc b/media/cast/net/rtp/rtp_packetizer_unittest.cc
index e15647e17635d58cd68b431e9885d32ca581947f..5c5812581e73a89d59f47dcf2053ebfeff74d563 100644
--- a/media/cast/net/rtp/rtp_packetizer_unittest.cc
+++ b/media/cast/net/rtp/rtp_packetizer_unittest.cc
@@ -36,8 +36,7 @@ class TestRtpPacketTransport : public PacketSender {
packets_sent_(0),
expected_number_of_packets_(0),
expected_packet_id_(0),
- expected_frame_id_(0),
- expected_rtp_timestamp_(0) {}
+ expected_frame_id_(0) {}
void VerifyRtpHeader(const RtpCastHeader& rtp_header) {
VerifyCommonRtpHeader(rtp_header);
@@ -87,7 +86,7 @@ class TestRtpPacketTransport : public PacketSender {
expected_number_of_packets_ = expected_number_of_packets;
}
- void set_rtp_timestamp(uint32_t rtp_timestamp) {
+ void set_rtp_timestamp(RtpTimeTicks rtp_timestamp) {
expected_rtp_timestamp_ = rtp_timestamp;
}
@@ -99,7 +98,7 @@ class TestRtpPacketTransport : public PacketSender {
// Assuming packets arrive in sequence.
int expected_packet_id_;
uint32_t expected_frame_id_;
- uint32_t expected_rtp_timestamp_;
+ RtpTimeTicks expected_rtp_timestamp_;
private:
DISALLOW_COPY_AND_ASSIGN(TestRtpPacketTransport);
@@ -124,7 +123,7 @@ class RtpPacketizerTest : public ::testing::Test {
video_frame_.frame_id = 0;
video_frame_.referenced_frame_id = video_frame_.frame_id - 1;
video_frame_.data.assign(kFrameSize, 123);
- video_frame_.rtp_timestamp = 0x0055aa11;
+ video_frame_.rtp_timestamp = RtpTimeTicks().Expand(UINT32_C(0x0055aa11));
}
void RunTasks(int during_ms) {
« no previous file with comments | « media/cast/net/rtp/rtp_packetizer.cc ('k') | media/cast/net/rtp/rtp_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698