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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_
7 7
8 #include "net/quic/quic_protocol.h" 8 #include "net/quic/quic_protocol.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 class QuicFlowController; 12 class QuicFlowController;
13 13
14 namespace test { 14 namespace test {
15 15
16 class QuicFlowControllerPeer { 16 class QuicFlowControllerPeer {
17 public: 17 public:
18 static void SetSendWindowOffset(QuicFlowController* flow_controller, 18 static void SetSendWindowOffset(QuicFlowController* flow_controller,
19 uint64 offset); 19 QuicStreamOffset offset);
20 20
21 static void SetReceiveWindowOffset(QuicFlowController* flow_controller, 21 static void SetReceiveWindowOffset(QuicFlowController* flow_controller,
22 uint64 offset); 22 QuicStreamOffset offset);
23 23
24 static void SetMaxReceiveWindow(QuicFlowController* flow_controller, 24 static void SetMaxReceiveWindow(QuicFlowController* flow_controller,
25 uint64 window_size); 25 QuicByteCount window_size);
26 26
27 static uint64 SendWindowOffset(QuicFlowController* flow_controller); 27 static QuicStreamOffset SendWindowOffset(QuicFlowController* flow_controller);
28 28
29 static uint64 SendWindowSize(QuicFlowController* flow_controller); 29 static QuicByteCount SendWindowSize(QuicFlowController* flow_controller);
30 30
31 static uint64 ReceiveWindowOffset(QuicFlowController* flow_controller); 31 static QuicStreamOffset ReceiveWindowOffset(
32 QuicFlowController* flow_controller);
32 33
33 static uint64 ReceiveWindowSize(QuicFlowController* flow_controller); 34 static QuicByteCount ReceiveWindowSize(QuicFlowController* flow_controller);
34 35
35 private: 36 private:
36 DISALLOW_COPY_AND_ASSIGN(QuicFlowControllerPeer); 37 DISALLOW_COPY_AND_ASSIGN(QuicFlowControllerPeer);
37 }; 38 };
38 39
39 } // namespace test 40 } // namespace test
40 } // namespace net 41 } // namespace net
41 42
42 #endif // NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_ 43 #endif // NET_QUIC_TEST_TOOLS_QUIC_FLOW_CONTROLLER_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_crypto_client_stream.cc ('k') | net/quic/test_tools/quic_flow_controller_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698