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

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

Issue 2094183004: Remove unused parameters from VCMReceiver::InsertPacket(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/video_coding/receiver.cc ('k') | webrtc/modules/video_coding/video_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/receiver_unittest.cc
diff --git a/webrtc/modules/video_coding/receiver_unittest.cc b/webrtc/modules/video_coding/receiver_unittest.cc
index d05957f6f0df69d87ba2456164e25ce13e10a04e..863dac344e3b569a9254f092c24e8a955745e669 100644
--- a/webrtc/modules/video_coding/receiver_unittest.cc
+++ b/webrtc/modules/video_coding/receiver_unittest.cc
@@ -29,9 +29,6 @@ namespace webrtc {
class TestVCMReceiver : public ::testing::Test {
protected:
- enum { kWidth = 640 };
- enum { kHeight = 480 };
-
TestVCMReceiver()
: clock_(new SimulatedClock(0)),
timing_(clock_.get()),
@@ -48,7 +45,7 @@ class TestVCMReceiver : public ::testing::Test {
EXPECT_TRUE(packet_available);
if (!packet_available)
return kGeneralError; // Return here to avoid crashes below.
- return receiver_.InsertPacket(packet, kWidth, kHeight);
+ return receiver_.InsertPacket(packet);
}
int32_t InsertPacketAndPop(int index) {
@@ -57,7 +54,7 @@ class TestVCMReceiver : public ::testing::Test {
EXPECT_TRUE(packet_available);
if (!packet_available)
return kGeneralError; // Return here to avoid crashes below.
- return receiver_.InsertPacket(packet, kWidth, kHeight);
+ return receiver_.InsertPacket(packet);
}
int32_t InsertFrame(FrameType frame_type, bool complete) {
@@ -338,7 +335,7 @@ class SimulatedClockWithFrames : public SimulatedClock {
EXPECT_TRUE(packet_available);
if (!packet_available)
return; // Return here to avoid crashes below.
- receiver_->InsertPacket(packet, 640, 480);
+ receiver_->InsertPacket(packet);
}
std::queue<TimestampPair> timestamps_;
« no previous file with comments | « webrtc/modules/video_coding/receiver.cc ('k') | webrtc/modules/video_coding/video_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698