| 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 "net/quic/quic_framer.h" |
| 6 |
| 5 #include <algorithm> | 7 #include <algorithm> |
| 6 #include <map> | 8 #include <map> |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
| 11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/port.h" | 15 #include "base/port.h" |
| 14 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 15 #include "net/quic/crypto/quic_decrypter.h" | 17 #include "net/quic/crypto/quic_decrypter.h" |
| 16 #include "net/quic/crypto/quic_encrypter.h" | 18 #include "net/quic/crypto/quic_encrypter.h" |
| 17 #include "net/quic/quic_framer.h" | |
| 18 #include "net/quic/quic_protocol.h" | 19 #include "net/quic/quic_protocol.h" |
| 19 #include "net/quic/quic_utils.h" | 20 #include "net/quic/quic_utils.h" |
| 20 #include "net/quic/test_tools/quic_framer_peer.h" | 21 #include "net/quic/test_tools/quic_framer_peer.h" |
| 21 #include "net/quic/test_tools/quic_test_utils.h" | 22 #include "net/quic/test_tools/quic_test_utils.h" |
| 22 | 23 |
| 23 using base::hash_set; | 24 using base::hash_set; |
| 24 using base::StringPiece; | 25 using base::StringPiece; |
| 25 using std::make_pair; | 26 using std::make_pair; |
| 26 using std::map; | 27 using std::map; |
| 27 using std::numeric_limits; | 28 using std::numeric_limits; |
| (...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3512 EXPECT_CALL(visitor, OnPacketComplete()); | 3513 EXPECT_CALL(visitor, OnPacketComplete()); |
| 3513 EXPECT_CALL(visitor, OnUnauthenticatedPublicHeader(_)).WillOnce(Return(true)); | 3514 EXPECT_CALL(visitor, OnUnauthenticatedPublicHeader(_)).WillOnce(Return(true)); |
| 3514 | 3515 |
| 3515 QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); | 3516 QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); |
| 3516 EXPECT_TRUE(framer_.ProcessPacket(encrypted)); | 3517 EXPECT_TRUE(framer_.ProcessPacket(encrypted)); |
| 3517 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); | 3518 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); |
| 3518 } | 3519 } |
| 3519 | 3520 |
| 3520 } // namespace test | 3521 } // namespace test |
| 3521 } // namespace net | 3522 } // namespace net |
| OLD | NEW |