OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_STREAM_FACTORY_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ |
6 #define NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 QuicChromiumClientSession* session); | 48 QuicChromiumClientSession* session); |
49 | 49 |
50 static void SetTaskRunner(QuicStreamFactory* factory, | 50 static void SetTaskRunner(QuicStreamFactory* factory, |
51 base::TaskRunner* task_runner); | 51 base::TaskRunner* task_runner); |
52 | 52 |
53 static int GetNumberOfLossyConnections(QuicStreamFactory* factory, | 53 static int GetNumberOfLossyConnections(QuicStreamFactory* factory, |
54 uint16_t port); | 54 uint16_t port); |
55 | 55 |
56 static bool IsQuicDisabled(QuicStreamFactory* factory, uint16_t port); | 56 static bool IsQuicDisabled(QuicStreamFactory* factory, uint16_t port); |
57 | 57 |
58 static bool GetDelayTcpRace(QuicStreamFactory* factory); | |
59 | |
60 static void SetDelayTcpRace(QuicStreamFactory* factory, bool delay_tcp_race); | |
61 | |
62 static void SetYieldAfterPackets(QuicStreamFactory* factory, | 58 static void SetYieldAfterPackets(QuicStreamFactory* factory, |
63 int yield_after_packets); | 59 int yield_after_packets); |
64 | 60 |
65 static void SetYieldAfterDuration(QuicStreamFactory* factory, | 61 static void SetYieldAfterDuration(QuicStreamFactory* factory, |
66 QuicTime::Delta yield_after_duration); | 62 QuicTime::Delta yield_after_duration); |
67 | 63 |
68 static size_t GetNumberOfActiveJobs(QuicStreamFactory* factory, | 64 static size_t GetNumberOfActiveJobs(QuicStreamFactory* factory, |
69 const QuicServerId& server_id); | 65 const QuicServerId& server_id); |
70 | 66 |
71 static int GetNumTimeoutsWithOpenStreams(QuicStreamFactory* factory); | 67 static int GetNumTimeoutsWithOpenStreams(QuicStreamFactory* factory); |
(...skipping 20 matching lines...) Expand all Loading... |
92 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); | 88 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); |
93 | 89 |
94 private: | 90 private: |
95 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); | 91 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); |
96 }; | 92 }; |
97 | 93 |
98 } // namespace test | 94 } // namespace test |
99 } // namespace net | 95 } // namespace net |
100 | 96 |
101 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ | 97 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ |
OLD | NEW |