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/quic_utils.h" |
11 #include "net/quic/test_tools/quic_connection_peer.h" | 11 #include "net/quic/test_tools/quic_connection_peer.h" |
12 #include "net/quic/test_tools/quic_data_stream_peer.h" | 12 #include "net/quic/test_tools/quic_data_stream_peer.h" |
13 #include "net/quic/test_tools/quic_test_utils.h" | 13 #include "net/quic/test_tools/quic_test_utils.h" |
14 #include "net/tools/epoll_server/epoll_server.h" | |
15 #include "net/tools/quic/quic_spdy_server_stream.h" | 14 #include "net/tools/quic/quic_spdy_server_stream.h" |
16 #include "net/tools/quic/test_tools/quic_test_utils.h" | 15 #include "net/tools/quic/test_tools/quic_test_utils.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
19 | 18 |
20 using __gnu_cxx::vector; | 19 using __gnu_cxx::vector; |
21 using net::test::MockConnection; | 20 using net::test::MockConnection; |
22 using net::test::QuicConnectionPeer; | 21 using net::test::QuicConnectionPeer; |
23 using net::test::QuicDataStreamPeer; | 22 using net::test::QuicDataStreamPeer; |
24 using net::test::SupportedVersions; | 23 using net::test::SupportedVersions; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Incoming streams on the server session must be odd. | 174 // Incoming streams on the server session must be odd. |
176 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_STREAM_ID)); | 175 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_STREAM_ID)); |
177 EXPECT_EQ(NULL, | 176 EXPECT_EQ(NULL, |
178 QuicServerSessionPeer::GetIncomingDataStream(session_.get(), 4)); | 177 QuicServerSessionPeer::GetIncomingDataStream(session_.get(), 4)); |
179 } | 178 } |
180 | 179 |
181 } // namespace | 180 } // namespace |
182 } // namespace test | 181 } // namespace test |
183 } // namespace tools | 182 } // namespace tools |
184 } // namespace net | 183 } // namespace net |
OLD | NEW |