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

Side by Side Diff: net/quic/core/congestion_control/general_loss_algorithm_test.cc

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "net/quic/core/congestion_control/general_loss_algorithm.h" 5 #include "net/quic/core/congestion_control/general_loss_algorithm.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdint> 8 #include <cstdint>
9 9
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "net/quic/core/congestion_control/rtt_stats.h" 11 #include "net/quic/core/congestion_control/rtt_stats.h"
12 #include "net/quic/core/quic_flags.h"
13 #include "net/quic/core/quic_unacked_packet_map.h" 12 #include "net/quic/core/quic_unacked_packet_map.h"
13 #include "net/quic/platform/api/quic_flags.h"
14 #include "net/quic/test_tools/mock_clock.h" 14 #include "net/quic/test_tools/mock_clock.h"
15 #include "net/quic/test_tools/quic_test_utils.h" 15 #include "net/quic/test_tools/quic_test_utils.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace net { 18 namespace net {
19 namespace test { 19 namespace test {
20 namespace { 20 namespace {
21 21
22 // Default packet length. 22 // Default packet length.
23 const uint32_t kDefaultLength = 1000; 23 const uint32_t kDefaultLength = 1000;
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // Detect another spurious retransmit and ensure the threshold doesn't 433 // Detect another spurious retransmit and ensure the threshold doesn't
434 // increase again. 434 // increase again.
435 loss_algorithm_.SpuriousRetransmitDetected(unacked_packets_, clock_.Now(), 435 loss_algorithm_.SpuriousRetransmitDetected(unacked_packets_, clock_.Now(),
436 rtt_stats_, 12); 436 rtt_stats_, 12);
437 EXPECT_EQ(1, loss_algorithm_.reordering_shift()); 437 EXPECT_EQ(1, loss_algorithm_.reordering_shift());
438 } 438 }
439 439
440 } // namespace 440 } // namespace
441 } // namespace test 441 } // namespace test
442 } // namespace net 442 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698