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

Unified Diff: net/quic/quic_ack_notifier_test.cc

Issue 849123003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed extra blank line Created 5 years, 11 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 | « net/quic/quic_ack_notifier.cc ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_ack_notifier_test.cc
diff --git a/net/quic/quic_ack_notifier_test.cc b/net/quic/quic_ack_notifier_test.cc
index fbc7e378ec73c002ade515a4028f0e2f95bd8af6..4e15b98ba6969bd9488813c5bb7790c029b29360 100644
--- a/net/quic/quic_ack_notifier_test.cc
+++ b/net/quic/quic_ack_notifier_test.cc
@@ -34,7 +34,7 @@ class QuicAckNotifierTest : public ::testing::Test {
// Should trigger callback when we receive acks for all the registered seqnums.
TEST_F(QuicAckNotifierTest, TriggerCallback) {
- EXPECT_CALL(*delegate_, OnAckNotification(3, 123, 0, 0, zero_)).Times(1);
+ EXPECT_CALL(*delegate_, OnAckNotification(0, 0, zero_)).Times(1);
EXPECT_FALSE(notifier_->OnAck(26, zero_));
EXPECT_FALSE(notifier_->OnAck(99, zero_));
EXPECT_TRUE(notifier_->OnAck(1234, zero_));
@@ -43,7 +43,7 @@ TEST_F(QuicAckNotifierTest, TriggerCallback) {
// Should not trigger callback if we never provide all the seqnums.
TEST_F(QuicAckNotifierTest, DoesNotTrigger) {
// Should not trigger callback as not all packets have been seen.
- EXPECT_CALL(*delegate_, OnAckNotification(_, _, _, _, _)).Times(0);
+ EXPECT_CALL(*delegate_, OnAckNotification(_, _, _)).Times(0);
EXPECT_FALSE(notifier_->OnAck(26, zero_));
EXPECT_FALSE(notifier_->OnAck(99, zero_));
}
@@ -55,7 +55,7 @@ TEST_F(QuicAckNotifierTest, UpdateSeqNums) {
notifier_->UpdateSequenceNumber(99, 3000);
notifier_->UpdateSequenceNumber(1234, 3001);
- EXPECT_CALL(*delegate_, OnAckNotification(3, 123, 2, 20 + 3, _)).Times(1);
+ EXPECT_CALL(*delegate_, OnAckNotification(2, 20 + 3, _)).Times(1);
EXPECT_FALSE(notifier_->OnAck(26, zero_)); // original
EXPECT_FALSE(notifier_->OnAck(3000, zero_)); // updated
EXPECT_TRUE(notifier_->OnAck(3001, zero_)); // updated
@@ -67,9 +67,7 @@ TEST_F(QuicAckNotifierTest, DeltaTime) {
const QuicTime::Delta second_delta = QuicTime::Delta::FromSeconds(33);
const QuicTime::Delta third_delta = QuicTime::Delta::FromSeconds(10);
- EXPECT_CALL(*delegate_,
- OnAckNotification(3, 123, 0, 0, third_delta))
- .Times(1);
+ EXPECT_CALL(*delegate_, OnAckNotification(0, 0, third_delta)).Times(1);
EXPECT_FALSE(notifier_->OnAck(26, first_delta));
EXPECT_FALSE(notifier_->OnAck(99, second_delta));
EXPECT_TRUE(notifier_->OnAck(1234, third_delta));
« no previous file with comments | « net/quic/quic_ack_notifier.cc ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698