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

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 798873005: Remove unused original transmission stats from QuicAckNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removing_quic_version_21_83551025
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <string> 6 #include <string>
7 #include <sys/epoll.h> 7 #include <sys/epoll.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 EXPECT_TRUE(server_sent_packet_manager.using_pacing()); 1367 EXPECT_TRUE(server_sent_packet_manager.using_pacing());
1368 EXPECT_TRUE(client_sent_packet_manager.using_pacing()); 1368 EXPECT_TRUE(client_sent_packet_manager.using_pacing());
1369 } 1369 }
1370 1370
1371 // A TestAckNotifierDelegate verifies that its OnAckNotification method has been 1371 // A TestAckNotifierDelegate verifies that its OnAckNotification method has been
1372 // called exactly once on destruction. 1372 // called exactly once on destruction.
1373 class TestAckNotifierDelegate : public QuicAckNotifier::DelegateInterface { 1373 class TestAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
1374 public: 1374 public:
1375 TestAckNotifierDelegate() {} 1375 TestAckNotifierDelegate() {}
1376 1376
1377 void OnAckNotification(int /*num_original_packets*/, 1377 void OnAckNotification(int /*num_retransmitted_packets*/,
1378 int /*num_original_bytes*/,
1379 int /*num_retransmitted_packets*/,
1380 int /*num_retransmitted_bytes*/, 1378 int /*num_retransmitted_bytes*/,
1381 QuicTime::Delta /*delta_largest_observed*/) override { 1379 QuicTime::Delta /*delta_largest_observed*/) override {
1382 ASSERT_FALSE(has_been_notified_); 1380 ASSERT_FALSE(has_been_notified_);
1383 has_been_notified_ = true; 1381 has_been_notified_ = true;
1384 } 1382 }
1385 1383
1386 bool has_been_notified() const { return has_been_notified_; } 1384 bool has_been_notified() const { return has_been_notified_; }
1387 1385
1388 protected: 1386 protected:
1389 // Object is ref counted. 1387 // Object is ref counted.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 while (!delegate->has_been_notified()) { 1435 while (!delegate->has_been_notified()) {
1438 // Waits for up to 50 ms. 1436 // Waits for up to 50 ms.
1439 client_->client()->WaitForEvents(); 1437 client_->client()->WaitForEvents();
1440 } 1438 }
1441 } 1439 }
1442 1440
1443 } // namespace 1441 } // namespace
1444 } // namespace test 1442 } // namespace test
1445 } // namespace tools 1443 } // namespace tools
1446 } // namespace net 1444 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698