Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: net/quic/quic_session_test.cc

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/quic_spdy_compressor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/quic_spdy_compressor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698