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/crypto/crypto_handshake.h" | 7 #include "net/quic/crypto/crypto_handshake_message.h" |
8 #include "net/quic/crypto/crypto_protocol.h" | 8 #include "net/quic/crypto/crypto_protocol.h" |
9 #include "net/quic/quic_protocol.h" | 9 #include "net/quic/quic_protocol.h" |
10 #include "net/quic/quic_sent_packet_manager.h" | 10 #include "net/quic/quic_sent_packet_manager.h" |
11 #include "net/quic/quic_time.h" | 11 #include "net/quic/quic_time.h" |
| 12 #include "net/quic/quic_utils.h" |
12 #include "net/quic/test_tools/quic_test_utils.h" | 13 #include "net/quic/test_tools/quic_test_utils.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 using std::string; | 16 using std::string; |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 namespace test { | 19 namespace test { |
19 namespace { | 20 namespace { |
20 | 21 |
21 class QuicConfigTest : public ::testing::Test { | 22 class QuicConfigTest : public ::testing::Test { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 string error_details; | 193 string error_details; |
193 server_config.ToHandshakeMessage(&msg); | 194 server_config.ToHandshakeMessage(&msg); |
194 const QuicErrorCode error = config_.ProcessClientHello(msg, &error_details); | 195 const QuicErrorCode error = config_.ProcessClientHello(msg, &error_details); |
195 LOG(INFO) << QuicUtils::ErrorToString(error); | 196 LOG(INFO) << QuicUtils::ErrorToString(error); |
196 EXPECT_EQ(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP, error); | 197 EXPECT_EQ(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP, error); |
197 } | 198 } |
198 | 199 |
199 } // namespace | 200 } // namespace |
200 } // namespace test | 201 } // namespace test |
201 } // namespace net | 202 } // namespace net |
OLD | NEW |