| 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 #include "net/quic/quic_connection.h" | 6 #include "net/quic/quic_connection.h" |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // After sending a GoAway, ensure new incoming streams cannot be created and | 205 // After sending a GoAway, ensure new incoming streams cannot be created and |
| 206 // result in a RST being sent. | 206 // result in a RST being sent. |
| 207 EXPECT_CALL(*connection_, | 207 EXPECT_CALL(*connection_, |
| 208 SendGoAway(QUIC_PEER_GOING_AWAY, 0u, "Going Away.")); | 208 SendGoAway(QUIC_PEER_GOING_AWAY, 0u, "Going Away.")); |
| 209 session_.SendGoAway(QUIC_PEER_GOING_AWAY, "Going Away."); | 209 session_.SendGoAway(QUIC_PEER_GOING_AWAY, "Going Away."); |
| 210 EXPECT_TRUE(session_.goaway_sent()); | 210 EXPECT_TRUE(session_.goaway_sent()); |
| 211 | 211 |
| 212 EXPECT_CALL(*connection_, SendRstStream(3u, QUIC_STREAM_PEER_GOING_AWAY)); | 212 EXPECT_CALL(*connection_, SendRstStream(3u, QUIC_STREAM_PEER_GOING_AWAY)); |
| 213 EXPECT_FALSE(session_.GetIncomingReliableStream(3u)); | 213 EXPECT_FALSE(session_.GetIncomingReliableStream(3u)); |
| 214 } | 214 } |
| 215 |
| 215 } // namespace | 216 } // namespace |
| 216 } // namespace test | 217 } // namespace test |
| 217 } // namespace net | 218 } // namespace net |
| OLD | NEW |