| 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_session.h" | 5 #include "net/quic/quic_session.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "net/quic/crypto/crypto_handshake.h" | 11 #include "net/quic/quic_crypto_stream.h" |
| 12 #include "net/quic/quic_connection.h" | |
| 13 #include "net/quic/quic_protocol.h" | 12 #include "net/quic/quic_protocol.h" |
| 13 #include "net/quic/reliable_quic_stream.h" |
| 14 #include "net/quic/test_tools/quic_connection_peer.h" | 14 #include "net/quic/test_tools/quic_connection_peer.h" |
| 15 #include "net/quic/test_tools/quic_data_stream_peer.h" | 15 #include "net/quic/test_tools/quic_data_stream_peer.h" |
| 16 #include "net/quic/test_tools/quic_session_peer.h" | 16 #include "net/quic/test_tools/quic_session_peer.h" |
| 17 #include "net/quic/test_tools/quic_test_utils.h" | 17 #include "net/quic/test_tools/quic_test_utils.h" |
| 18 #include "net/quic/test_tools/reliable_quic_stream_peer.h" | 18 #include "net/quic/test_tools/reliable_quic_stream_peer.h" |
| 19 #include "net/spdy/spdy_framer.h" | 19 #include "net/spdy/spdy_framer.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 using base::hash_map; | 23 using base::hash_map; |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 } | 504 } |
| 505 | 505 |
| 506 QuicRstStreamFrame rst1(stream_id1, QUIC_STREAM_NO_ERROR); | 506 QuicRstStreamFrame rst1(stream_id1, QUIC_STREAM_NO_ERROR); |
| 507 session_.OnRstStream(rst1); | 507 session_.OnRstStream(rst1); |
| 508 EXPECT_EQ(0u, session_.GetNumOpenStreams()); | 508 EXPECT_EQ(0u, session_.GetNumOpenStreams()); |
| 509 } | 509 } |
| 510 | 510 |
| 511 } // namespace | 511 } // namespace |
| 512 } // namespace test | 512 } // namespace test |
| 513 } // namespace net | 513 } // namespace net |
| OLD | NEW |