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/platform/api/quic_flags.h" |
9 #include "net/quic/platform/api/quic_logging.h" | 10 #include "net/quic/platform/api/quic_logging.h" |
10 #include "net/quic/platform/api/quic_socket_address.h" | 11 #include "net/quic/platform/api/quic_socket_address.h" |
11 #include "net/quic/test_tools/crypto_test_utils.h" | 12 #include "net/quic/test_tools/crypto_test_utils.h" |
12 #include "net/quic/test_tools/mock_quic_dispatcher.h" | 13 #include "net/quic/test_tools/mock_quic_dispatcher.h" |
13 #include "net/tools/quic/quic_epoll_alarm_factory.h" | 14 #include "net/tools/quic/quic_epoll_alarm_factory.h" |
14 #include "net/tools/quic/quic_epoll_connection_helper.h" | 15 #include "net/tools/quic/quic_epoll_connection_helper.h" |
15 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" | 16 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" |
16 #include "net/tools/quic/test_tools/quic_server_peer.h" | 17 #include "net/tools/quic/test_tools/quic_server_peer.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 reinterpret_cast<char*>(valid_packet), arraysize(valid_packet), | 198 reinterpret_cast<char*>(valid_packet), arraysize(valid_packet), |
198 QuicTime::Zero(), false); | 199 QuicTime::Zero(), false); |
199 | 200 |
200 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1); | 201 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1); |
201 DispatchPacket(encrypted_valid_packet); | 202 DispatchPacket(encrypted_valid_packet); |
202 } | 203 } |
203 | 204 |
204 } // namespace | 205 } // namespace |
205 } // namespace test | 206 } // namespace test |
206 } // namespace net | 207 } // namespace net |
OLD | NEW |