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

Unified Diff: media/cast/framer/frame_buffer_unittest.cc

Issue 250363002: [Cast] Clean-up RtpCastHeader and RtpParser, removing the last WebRTC dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hubbe's comment. Created 6 years, 8 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 | « media/cast/framer/frame_buffer.cc ('k') | media/cast/framer/frame_id_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/framer/frame_buffer_unittest.cc
diff --git a/media/cast/framer/frame_buffer_unittest.cc b/media/cast/framer/frame_buffer_unittest.cc
index c5af17efaba8418ccc165b5a62a70d06455b6e89..c00aa2b77bb9b25f9c71fa67ba6f43a3a4d5ee91 100644
--- a/media/cast/framer/frame_buffer_unittest.cc
+++ b/media/cast/framer/frame_buffer_unittest.cc
@@ -12,13 +12,6 @@ class FrameBufferTest : public ::testing::Test {
protected:
FrameBufferTest() {
payload_.assign(kMaxIpPacketSize, 0);
- // Build a default one packet frame - populate webrtc header.
- rtp_header_.is_key_frame = false;
- rtp_header_.frame_id = 0;
- rtp_header_.packet_id = 0;
- rtp_header_.max_packet_id = 0;
- rtp_header_.is_reference = false;
- rtp_header_.reference_frame_id = 0;
}
virtual ~FrameBufferTest() {}
@@ -31,9 +24,10 @@ class FrameBufferTest : public ::testing::Test {
};
TEST_F(FrameBufferTest, OnePacketInsertSanity) {
- rtp_header_.webrtc.header.timestamp = 3000u;
+ rtp_header_.rtp_timestamp = 3000;
rtp_header_.is_key_frame = true;
rtp_header_.frame_id = 5;
+ rtp_header_.reference_frame_id = 5;
buffer_.InsertPacket(payload_.data(), payload_.size(), rtp_header_);
transport::EncodedVideoFrame frame;
EXPECT_TRUE(buffer_.GetEncodedVideoFrame(&frame));
« no previous file with comments | « media/cast/framer/frame_buffer.cc ('k') | media/cast/framer/frame_id_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698