- add sources.
[platform/framework/web/crosswalk.git] / src / net / tools / quic / test_tools / quic_dispatcher_peer.h
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
3 // found in the LICENSE file.
4
5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_
7
8 #include "net/quic/test_tools/quic_test_writer.h"
9 #include "net/tools/quic/quic_dispatcher.h"
10
11 namespace net {
12 namespace tools {
13 namespace test {
14
15 class QuicDispatcherPeer {
16  public:
17   static void SetTimeWaitListManager(
18       QuicDispatcher* dispatcher,
19       QuicTimeWaitListManager* time_wait_list_manager);
20
21   static void SetWriteBlocked(QuicDispatcher* dispatcher);
22
23   static void UseWriter(QuicDispatcher* dispatcher,
24                         net::test::QuicTestWriter* writer);
25
26   static QuicPacketWriter* GetWriter(QuicDispatcher* dispatcher);
27
28   static QuicEpollConnectionHelper* GetHelper(QuicDispatcher* dispatcher);
29 };
30
31 }  // namespace test
32 }  // namespace tools
33 }  // namespace net
34
35 #endif  // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_