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_session.h" | 5 #include "net/tools/quic/quic_server_session.h" |
6 | 6 |
7 #include "net/quic/crypto/quic_crypto_server_config.h" | 7 #include "net/quic/crypto/quic_crypto_server_config.h" |
8 #include "net/quic/crypto/quic_random.h" | 8 #include "net/quic/crypto/quic_random.h" |
9 #include "net/quic/quic_connection.h" | 9 #include "net/quic/quic_connection.h" |
| 10 #include "net/quic/quic_utils.h" |
10 #include "net/quic/test_tools/quic_connection_peer.h" | 11 #include "net/quic/test_tools/quic_connection_peer.h" |
11 #include "net/quic/test_tools/quic_data_stream_peer.h" | 12 #include "net/quic/test_tools/quic_data_stream_peer.h" |
12 #include "net/quic/test_tools/quic_test_utils.h" | 13 #include "net/quic/test_tools/quic_test_utils.h" |
13 #include "net/tools/epoll_server/epoll_server.h" | 14 #include "net/tools/epoll_server/epoll_server.h" |
14 #include "net/tools/quic/quic_spdy_server_stream.h" | 15 #include "net/tools/quic/quic_spdy_server_stream.h" |
15 #include "net/tools/quic/test_tools/quic_test_utils.h" | 16 #include "net/tools/quic/test_tools/quic_test_utils.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
19 using __gnu_cxx::vector; | 20 using __gnu_cxx::vector; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Incoming streams on the server session must be odd. | 250 // Incoming streams on the server session must be odd. |
250 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_STREAM_ID)); | 251 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_STREAM_ID)); |
251 EXPECT_EQ(NULL, | 252 EXPECT_EQ(NULL, |
252 QuicServerSessionPeer::GetIncomingDataStream(session_.get(), 4)); | 253 QuicServerSessionPeer::GetIncomingDataStream(session_.get(), 4)); |
253 } | 254 } |
254 | 255 |
255 } // namespace | 256 } // namespace |
256 } // namespace test | 257 } // namespace test |
257 } // namespace tools | 258 } // namespace tools |
258 } // namespace net | 259 } // namespace net |
OLD | NEW |