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

Side by Side Diff: net/quic/test_tools/quic_flow_controller_peer.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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 10 matching lines...) Expand all
21 21
22 // static 22 // static
23 void QuicFlowControllerPeer::SetReceiveWindowOffset( 23 void QuicFlowControllerPeer::SetReceiveWindowOffset(
24 QuicFlowController* flow_controller, 24 QuicFlowController* flow_controller,
25 uint64 offset) { 25 uint64 offset) {
26 flow_controller->receive_window_offset_ = offset; 26 flow_controller->receive_window_offset_ = offset;
27 } 27 }
28 28
29 // static 29 // static
30 void QuicFlowControllerPeer::SetMaxReceiveWindow( 30 void QuicFlowControllerPeer::SetMaxReceiveWindow(
31 QuicFlowController* flow_controller, uint64 window_size) { 31 QuicFlowController* flow_controller,
32 uint64 window_size) {
32 flow_controller->max_receive_window_ = window_size; 33 flow_controller->max_receive_window_ = window_size;
33 } 34 }
34 35
35 // static 36 // static
36 uint64 QuicFlowControllerPeer::SendWindowOffset( 37 uint64 QuicFlowControllerPeer::SendWindowOffset(
37 QuicFlowController* flow_controller) { 38 QuicFlowController* flow_controller) {
38 return flow_controller->send_window_offset_; 39 return flow_controller->send_window_offset_;
39 } 40 }
40 41
41 // static 42 // static
(...skipping 10 matching lines...) Expand all
52 53
53 // static 54 // static
54 uint64 QuicFlowControllerPeer::ReceiveWindowSize( 55 uint64 QuicFlowControllerPeer::ReceiveWindowSize(
55 QuicFlowController* flow_controller) { 56 QuicFlowController* flow_controller) {
56 return flow_controller->receive_window_offset_ - 57 return flow_controller->receive_window_offset_ -
57 flow_controller->TotalReceivedBytes(); 58 flow_controller->TotalReceivedBytes();
58 } 59 }
59 60
60 } // namespace test 61 } // namespace test
61 } // namespace net 62 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698