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 <algorithm> | 5 #include <algorithm> |
6 #include <map> | 6 #include <map> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/port.h" | 13 #include "base/port.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "net/quic/crypto/quic_decrypter.h" | 15 #include "net/quic/crypto/quic_decrypter.h" |
16 #include "net/quic/crypto/quic_encrypter.h" | 16 #include "net/quic/crypto/quic_encrypter.h" |
17 #include "net/quic/quic_framer.h" | 17 #include "net/quic/quic_framer.h" |
18 #include "net/quic/quic_protocol.h" | 18 #include "net/quic/quic_protocol.h" |
19 #include "net/quic/quic_utils.h" | 19 #include "net/quic/quic_utils.h" |
20 #include "net/quic/test_tools/quic_framer_peer.h" | 20 #include "net/quic/test_tools/quic_framer_peer.h" |
(...skipping 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3401 EXPECT_CALL(visitor, OnConnectionCloseFrame(_)).Times(0); | 3401 EXPECT_CALL(visitor, OnConnectionCloseFrame(_)).Times(0); |
3402 EXPECT_CALL(visitor, OnPacketComplete()); | 3402 EXPECT_CALL(visitor, OnPacketComplete()); |
3403 | 3403 |
3404 QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); | 3404 QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); |
3405 EXPECT_TRUE(framer_.ProcessPacket(encrypted)); | 3405 EXPECT_TRUE(framer_.ProcessPacket(encrypted)); |
3406 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); | 3406 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); |
3407 } | 3407 } |
3408 | 3408 |
3409 } // namespace test | 3409 } // namespace test |
3410 } // namespace net | 3410 } // namespace net |
OLD | NEW |