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

Side by Side Diff: net/tools/quic/test_tools/quic_dispatcher_peer.h

Issue 127503002: Make QuicPacketWriter keep track of socket writability; expose the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
7 7
8 #include "net/quic/test_tools/quic_test_writer.h" 8 #include "net/quic/test_tools/quic_test_writer.h"
9 #include "net/tools/quic/quic_dispatcher.h" 9 #include "net/tools/quic/quic_dispatcher.h"
10 10
11 namespace net { 11 namespace net {
12 namespace tools { 12 namespace tools {
13 namespace test { 13 namespace test {
14 14
15 class QuicDispatcherPeer { 15 class QuicDispatcherPeer {
16 public: 16 public:
17 static void SetTimeWaitListManager( 17 static void SetTimeWaitListManager(
18 QuicDispatcher* dispatcher, 18 QuicDispatcher* dispatcher,
19 QuicTimeWaitListManager* time_wait_list_manager); 19 QuicTimeWaitListManager* time_wait_list_manager);
20 20
21 static void SetWriteBlocked(QuicDispatcher* dispatcher);
22
23 static void UseWriter(QuicDispatcher* dispatcher, 21 static void UseWriter(QuicDispatcher* dispatcher,
24 net::test::QuicTestWriter* writer); 22 net::test::QuicTestWriter* writer);
25 23
26 static QuicPacketWriter* GetWriter(QuicDispatcher* dispatcher); 24 static QuicPacketWriter* GetWriter(QuicDispatcher* dispatcher);
27 25
28 static QuicEpollConnectionHelper* GetHelper(QuicDispatcher* dispatcher); 26 static QuicEpollConnectionHelper* GetHelper(QuicDispatcher* dispatcher);
29 }; 27 };
30 28
31 } // namespace test 29 } // namespace test
32 } // namespace tools 30 } // namespace tools
33 } // namespace net 31 } // namespace net
34 32
35 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ 33 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698