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

Side by Side Diff: webrtc/modules/video_coding/video_packet_buffer_unittest.cc

Issue 2914683002: Cast sequence number in RtpFrameObject. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « webrtc/modules/video_coding/frame_object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 } 494 }
495 495
496 packet.seqNum = kStartSize - 1; 496 packet.seqNum = kStartSize - 1;
497 packet.markerBit = true; 497 packet.markerBit = true;
498 packet_buffer_->InsertPacket(&packet); 498 packet_buffer_->InsertPacket(&packet);
499 499
500 EXPECT_EQ(1UL, frames_from_callback_.size()); 500 EXPECT_EQ(1UL, frames_from_callback_.size());
501 CheckFrame(0); 501 CheckFrame(0);
502 } 502 }
503 503
504 TEST_F(TestPacketBuffer, OneH264FrameMaxSeqNum) {
505 VCMPacket packet;
506 packet.seqNum = 65534;
507 packet.codec = kVideoCodecH264;
508 packet.dataPtr = nullptr;
509 packet.sizeBytes = 0;
510 packet.is_first_packet_in_frame = true;
511 packet.markerBit = false;
512 packet_buffer_->InsertPacket(&packet);
513
514 packet.is_first_packet_in_frame = false;
515 packet.seqNum = 65535;
516 packet.markerBit = true;
517 packet_buffer_->InsertPacket(&packet);
518
519 EXPECT_EQ(1UL, frames_from_callback_.size());
520 CheckFrame(65534);
521 }
522
504 } // namespace video_coding 523 } // namespace video_coding
505 } // namespace webrtc 524 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/frame_object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698