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

Unified Diff: webrtc/modules/video_coding/packet_buffer_unittest.cc

Issue 1961053002: Logic for finding frame references moved from PacketBuffer to new class (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Includes in order. Created 4 years, 7 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
Index: webrtc/modules/video_coding/packet_buffer_unittest.cc
diff --git a/webrtc/modules/video_coding/packet_buffer_unittest.cc b/webrtc/modules/video_coding/packet_buffer_unittest.cc
index b7921e5c6daa9b943fa4ab6f74f958ee2e0a131f..b50074d8f60d87ef34cd93b001111f213f996366 100644
--- a/webrtc/modules/video_coding/packet_buffer_unittest.cc
+++ b/webrtc/modules/video_coding/packet_buffer_unittest.cc
@@ -10,7 +10,8 @@
#include <cstring>
#include <limits>
-#include <memory>
+#include <map>
+#include <set>
#include <utility>
#include "webrtc/modules/video_coding/frame_object.h"
@@ -444,7 +445,7 @@ TEST_F(TestPacketBuffer, FreeSlotsOnFrameDestruction) {
EXPECT_EQ(1UL, frames_from_callback_.size());
}
-TEST_F(TestPacketBuffer, Flush) {
+TEST_F(TestPacketBuffer, Clear) {
uint16_t seq_num = Rand();
// seq_num , kf, frst, lst
@@ -453,7 +454,7 @@ TEST_F(TestPacketBuffer, Flush) {
InsertGeneric(seq_num + 2, kF, kF , kT);
EXPECT_EQ(1UL, frames_from_callback_.size());
- packet_buffer_->Flush();
+ packet_buffer_->Clear();
// seq_num , kf, frst, lst
InsertGeneric(seq_num + kStartSize , kT, kT , kF);
@@ -462,7 +463,7 @@ TEST_F(TestPacketBuffer, Flush) {
EXPECT_EQ(2UL, frames_from_callback_.size());
}
-TEST_F(TestPacketBuffer, InvalidateFrameByFlushing) {
+TEST_F(TestPacketBuffer, InvalidateFrameByClearing) {
VCMPacket packet;
packet.codec = kVideoCodecGeneric;
packet.frameType = kVideoFrameKey;
@@ -472,7 +473,7 @@ TEST_F(TestPacketBuffer, InvalidateFrameByFlushing) {
EXPECT_TRUE(packet_buffer_->InsertPacket(packet));
ASSERT_EQ(1UL, frames_from_callback_.size());
- packet_buffer_->Flush();
+ packet_buffer_->Clear();
EXPECT_FALSE(frames_from_callback_.begin()->second->GetBitstream(nullptr));
}
« no previous file with comments | « webrtc/modules/video_coding/packet_buffer.cc ('k') | webrtc/modules/video_coding/rtp_frame_reference_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698