| 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/test_tools/quic_flow_controller_peer.h" | 5 #include "net/quic/test_tools/quic_flow_controller_peer.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "net/quic/quic_flow_controller.h" | 9 #include "net/quic/quic_flow_controller.h" |
| 10 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/quic_protocol.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // static | 47 // static |
| 48 uint64 QuicFlowControllerPeer::ReceiveWindowOffset( | 48 uint64 QuicFlowControllerPeer::ReceiveWindowOffset( |
| 49 QuicFlowController* flow_controller) { | 49 QuicFlowController* flow_controller) { |
| 50 return flow_controller->receive_window_offset_; | 50 return flow_controller->receive_window_offset_; |
| 51 } | 51 } |
| 52 | 52 |
| 53 // static | 53 // static |
| 54 uint64 QuicFlowControllerPeer::ReceiveWindowSize( | 54 uint64 QuicFlowControllerPeer::ReceiveWindowSize( |
| 55 QuicFlowController* flow_controller) { | 55 QuicFlowController* flow_controller) { |
| 56 return flow_controller->receive_window_offset_ - | 56 return flow_controller->receive_window_offset_ - |
| 57 flow_controller->TotalReceivedBytes(); | 57 flow_controller->highest_received_byte_offset_; |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace test | 60 } // namespace test |
| 61 } // namespace net | 61 } // namespace net |
| OLD | NEW |