OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "net/quic/quic_config.h" | 5 #include "net/quic/quic_config.h" |
6 | 6 |
7 #include "net/quic/congestion_control/quic_congestion_manager.h" | 7 #include "net/quic/congestion_control/quic_congestion_manager.h" |
8 #include "net/quic/crypto/crypto_handshake.h" | 8 #include "net/quic/crypto/crypto_handshake.h" |
9 #include "net/quic/crypto/crypto_protocol.h" | 9 #include "net/quic/crypto/crypto_protocol.h" |
10 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/quic_protocol.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 QuicConfig server_config; | 183 QuicConfig server_config; |
184 server_config.SetDefaults(); | 184 server_config.SetDefaults(); |
185 QuicTagVector cgst; | 185 QuicTagVector cgst; |
186 cgst.push_back(kINAR); | 186 cgst.push_back(kINAR); |
187 server_config.set_congestion_control(cgst, kINAR); | 187 server_config.set_congestion_control(cgst, kINAR); |
188 | 188 |
189 CryptoHandshakeMessage msg; | 189 CryptoHandshakeMessage msg; |
190 string error_details; | 190 string error_details; |
191 server_config.ToHandshakeMessage(&msg); | 191 server_config.ToHandshakeMessage(&msg); |
192 const QuicErrorCode error = config_.ProcessClientHello(msg, &error_details); | 192 const QuicErrorCode error = config_.ProcessClientHello(msg, &error_details); |
193 LOG(INFO) << QuicUtils::ErrorToString(error); | 193 VLOG(0) << QuicUtils::ErrorToString(error); |
194 EXPECT_EQ(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP, error); | 194 EXPECT_EQ(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP, error); |
195 } | 195 } |
196 | 196 |
197 } // namespace | 197 } // namespace |
198 } // namespace test | 198 } // namespace test |
199 } // namespace net | 199 } // namespace net |
OLD | NEW |