| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/quic_flow_controller.h" | 5 #include "net/quic/core/quic_flow_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/strings/stringprintf.h" | |
| 11 #include "net/quic/platform/api/quic_str_cat.h" | 10 #include "net/quic/platform/api/quic_str_cat.h" |
| 12 #include "net/quic/test_tools/quic_connection_peer.h" | 11 #include "net/quic/test_tools/quic_connection_peer.h" |
| 13 #include "net/quic/test_tools/quic_flow_controller_peer.h" | 12 #include "net/quic/test_tools/quic_flow_controller_peer.h" |
| 14 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" | 13 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" |
| 15 #include "net/quic/test_tools/quic_test_utils.h" | 14 #include "net/quic/test_tools/quic_test_utils.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 16 |
| 18 using testing::_; | 17 using testing::_; |
| 19 | 18 |
| 20 namespace net { | 19 namespace net { |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 EXPECT_FALSE(flow_controller_->FlowControlViolation()); | 363 EXPECT_FALSE(flow_controller_->FlowControlViolation()); |
| 365 | 364 |
| 366 QuicByteCount new_threshold = | 365 QuicByteCount new_threshold = |
| 367 QuicFlowControllerPeer::WindowUpdateThreshold(flow_controller_.get()); | 366 QuicFlowControllerPeer::WindowUpdateThreshold(flow_controller_.get()); |
| 368 | 367 |
| 369 EXPECT_EQ(new_threshold, threshold); | 368 EXPECT_EQ(new_threshold, threshold); |
| 370 } | 369 } |
| 371 | 370 |
| 372 } // namespace test | 371 } // namespace test |
| 373 } // namespace net | 372 } // namespace net |
| OLD | NEW |