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 |
58 static void SetYieldAfterPackets(QuicStreamFactory* factory, | 62 static void SetYieldAfterPackets(QuicStreamFactory* factory, |
59 int yield_after_packets); | 63 int yield_after_packets); |
60 | 64 |
61 static void SetYieldAfterDuration(QuicStreamFactory* factory, | 65 static void SetYieldAfterDuration(QuicStreamFactory* factory, |
62 QuicTime::Delta yield_after_duration); | 66 QuicTime::Delta yield_after_duration); |
63 | 67 |
64 static size_t GetNumberOfActiveJobs(QuicStreamFactory* factory, | 68 static size_t GetNumberOfActiveJobs(QuicStreamFactory* factory, |
65 const QuicServerId& server_id); | 69 const QuicServerId& server_id); |
66 | 70 |
67 static int GetNumTimeoutsWithOpenStreams(QuicStreamFactory* factory); | 71 static int GetNumTimeoutsWithOpenStreams(QuicStreamFactory* factory); |
(...skipping 20 matching lines...) Expand all Loading... |
88 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); | 92 static int GetNumPushStreamsCreated(QuicStreamFactory* factory); |
89 | 93 |
90 private: | 94 private: |
91 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); | 95 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactoryPeer); |
92 }; | 96 }; |
93 | 97 |
94 } // namespace test | 98 } // namespace test |
95 } // namespace net | 99 } // namespace net |
96 | 100 |
97 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ | 101 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_FACTORY_PEER_H_ |
OLD | NEW |