OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <sys/epoll.h> | 6 #include <sys/epoll.h> |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <list> | 9 #include <list> |
10 #include <memory> | 10 #include <memory> |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 os << "{ server_supported_versions: " | 102 os << "{ server_supported_versions: " |
103 << QuicVersionVectorToString(p.server_supported_versions); | 103 << QuicVersionVectorToString(p.server_supported_versions); |
104 os << " client_supported_versions: " | 104 os << " client_supported_versions: " |
105 << QuicVersionVectorToString(p.client_supported_versions); | 105 << QuicVersionVectorToString(p.client_supported_versions); |
106 os << " negotiated_version: " << QuicVersionToString(p.negotiated_version); | 106 os << " negotiated_version: " << QuicVersionToString(p.negotiated_version); |
107 os << " client_supports_stateless_rejects: " | 107 os << " client_supports_stateless_rejects: " |
108 << p.client_supports_stateless_rejects; | 108 << p.client_supports_stateless_rejects; |
109 os << " server_uses_stateless_rejects_if_peer_supported: " | 109 os << " server_uses_stateless_rejects_if_peer_supported: " |
110 << p.server_uses_stateless_rejects_if_peer_supported; | 110 << p.server_uses_stateless_rejects_if_peer_supported; |
111 os << " congestion_control_tag: " | 111 os << " congestion_control_tag: " |
112 << QuicUtils::TagToString(p.congestion_control_tag); | 112 << QuicTagToString(p.congestion_control_tag); |
113 os << " disable_hpack_dynamic_table: " << p.disable_hpack_dynamic_table; | 113 os << " disable_hpack_dynamic_table: " << p.disable_hpack_dynamic_table; |
114 os << " force_hol_blocking: " << p.force_hol_blocking; | 114 os << " force_hol_blocking: " << p.force_hol_blocking; |
115 os << " use_cheap_stateless_reject: " << p.use_cheap_stateless_reject | 115 os << " use_cheap_stateless_reject: " << p.use_cheap_stateless_reject |
116 << " }"; | 116 << " }"; |
117 return os; | 117 return os; |
118 } | 118 } |
119 | 119 |
120 QuicVersionVector client_supported_versions; | 120 QuicVersionVector client_supported_versions; |
121 QuicVersionVector server_supported_versions; | 121 QuicVersionVector server_supported_versions; |
122 QuicVersion negotiated_version; | 122 QuicVersion negotiated_version; |
(...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2959 client_->WaitForResponse(); | 2959 client_->WaitForResponse(); |
2960 EXPECT_EQ(kBarResponseBody, client_->response_body()); | 2960 EXPECT_EQ(kBarResponseBody, client_->response_body()); |
2961 QuicConnectionStats client_stats = | 2961 QuicConnectionStats client_stats = |
2962 client_->client()->session()->connection()->GetStats(); | 2962 client_->client()->session()->connection()->GetStats(); |
2963 EXPECT_EQ(0u, client_stats.packets_lost); | 2963 EXPECT_EQ(0u, client_stats.packets_lost); |
2964 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); | 2964 EXPECT_EQ(1, client_->client()->GetNumSentClientHellos()); |
2965 } | 2965 } |
2966 } // namespace | 2966 } // namespace |
2967 } // namespace test | 2967 } // namespace test |
2968 } // namespace net | 2968 } // namespace net |
OLD | NEW |