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_packet_creator.h" | 5 #include "net/quic/core/quic_packet_creator.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "net/quic/crypto/null_encrypter.h" | 13 #include "net/quic/core/crypto/null_encrypter.h" |
14 #include "net/quic/crypto/quic_decrypter.h" | 14 #include "net/quic/core/crypto/quic_decrypter.h" |
15 #include "net/quic/crypto/quic_encrypter.h" | 15 #include "net/quic/core/crypto/quic_encrypter.h" |
16 #include "net/quic/quic_flags.h" | 16 #include "net/quic/core/quic_flags.h" |
17 #include "net/quic/quic_simple_buffer_allocator.h" | 17 #include "net/quic/core/quic_simple_buffer_allocator.h" |
18 #include "net/quic/quic_utils.h" | 18 #include "net/quic/core/quic_utils.h" |
19 #include "net/quic/test_tools/mock_random.h" | 19 #include "net/quic/test_tools/mock_random.h" |
20 #include "net/quic/test_tools/quic_framer_peer.h" | 20 #include "net/quic/test_tools/quic_framer_peer.h" |
21 #include "net/quic/test_tools/quic_packet_creator_peer.h" | 21 #include "net/quic/test_tools/quic_packet_creator_peer.h" |
22 #include "net/quic/test_tools/quic_test_utils.h" | 22 #include "net/quic/test_tools/quic_test_utils.h" |
23 #include "net/test/gtest_util.h" | 23 #include "net/test/gtest_util.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 | 25 |
26 using base::StringPiece; | 26 using base::StringPiece; |
27 using std::ostream; | 27 using std::ostream; |
28 using std::string; | 28 using std::string; |
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 EXPECT_CALL(delegate_, | 1328 EXPECT_CALL(delegate_, |
1329 OnUnrecoverableError(QUIC_CRYPTO_CHLO_TOO_LARGE, _, _)); | 1329 OnUnrecoverableError(QUIC_CRYPTO_CHLO_TOO_LARGE, _, _)); |
1330 EXPECT_DFATAL( | 1330 EXPECT_DFATAL( |
1331 creator_.ConsumeData(1u, data_iovec, 0u, 0u, false, false, &frame), | 1331 creator_.ConsumeData(1u, data_iovec, 0u, 0u, false, false, &frame), |
1332 "Client hello won't fit in a single packet."); | 1332 "Client hello won't fit in a single packet."); |
1333 } | 1333 } |
1334 | 1334 |
1335 } // namespace | 1335 } // namespace |
1336 } // namespace test | 1336 } // namespace test |
1337 } // namespace net | 1337 } // namespace net |
OLD | NEW |