OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/tools/quic/quic_server.h" | 5 #include "net/tools/quic/quic_server.h" |
6 | 6 |
7 #include "net/quic/core/crypto/quic_random.h" | 7 #include "net/quic/core/crypto/quic_random.h" |
8 #include "net/quic/core/quic_utils.h" | 8 #include "net/quic/core/quic_utils.h" |
9 #include "net/quic/test_tools/crypto_test_utils.h" | 9 #include "net/quic/test_tools/crypto_test_utils.h" |
10 #include "net/quic/test_tools/mock_quic_dispatcher.h" | 10 #include "net/quic/test_tools/mock_quic_dispatcher.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // connection_id | 180 // connection_id |
181 0x10, 0x32, 0x54, 0x76, | 181 0x10, 0x32, 0x54, 0x76, |
182 0x98, 0xBA, 0xDC, 0xFE, | 182 0x98, 0xBA, 0xDC, 0xFE, |
183 // packet number | 183 // packet number |
184 0xBC, 0x9A, 0x78, 0x56, | 184 0xBC, 0x9A, 0x78, 0x56, |
185 0x34, 0x12, | 185 0x34, 0x12, |
186 // private flags | 186 // private flags |
187 0x00 | 187 0x00 |
188 }; | 188 }; |
189 // clang-format on | 189 // clang-format on |
190 QuicReceivedPacket encrypted_valid_packet(QuicUtils::AsChars(valid_packet), | 190 QuicReceivedPacket encrypted_valid_packet( |
191 arraysize(valid_packet), | 191 reinterpret_cast<char*>(valid_packet), arraysize(valid_packet), |
192 QuicTime::Zero(), false); | 192 QuicTime::Zero(), false); |
193 | 193 |
194 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1); | 194 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1); |
195 DispatchPacket(encrypted_valid_packet); | 195 DispatchPacket(encrypted_valid_packet); |
196 } | 196 } |
197 | 197 |
198 } // namespace | 198 } // namespace |
199 } // namespace test | 199 } // namespace test |
200 } // namespace net | 200 } // namespace net |
OLD | NEW |