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 <map> | 5 #include <map> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/quic/crypto/crypto_framer.h" | 10 #include "net/quic/crypto/crypto_framer.h" |
| 11 #include "net/quic/crypto/crypto_handshake.h" |
11 #include "net/quic/crypto/crypto_protocol.h" | 12 #include "net/quic/crypto/crypto_protocol.h" |
12 #include "net/quic/test_tools/quic_test_utils.h" | 13 #include "net/quic/test_tools/quic_test_utils.h" |
13 | 14 |
14 using base::StringPiece; | 15 using base::StringPiece; |
15 using std::map; | 16 using std::map; |
16 using std::string; | 17 using std::string; |
17 using std::vector; | 18 using std::vector; |
18 | 19 |
19 namespace net { | 20 namespace net { |
20 | 21 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 // padding | 381 // padding |
381 0x05, 0x00, | 382 0x05, 0x00, |
382 }; | 383 }; |
383 | 384 |
384 EXPECT_FALSE(framer.ProcessInput(StringPiece(AsChars(input), | 385 EXPECT_FALSE(framer.ProcessInput(StringPiece(AsChars(input), |
385 arraysize(input)))); | 386 arraysize(input)))); |
386 EXPECT_EQ(QUIC_CRYPTO_INVALID_VALUE_LENGTH, framer.error()); | 387 EXPECT_EQ(QUIC_CRYPTO_INVALID_VALUE_LENGTH, framer.error()); |
387 } | 388 } |
388 | 389 |
389 } // namespace net | 390 } // namespace net |
OLD | NEW |