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

Side by Side Diff: net/tools/quic/quic_simple_server_session_test.cc

Issue 2130103002: Landing Recent QUIC changes until 2016-07-02 02:45 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « net/tools/quic/quic_simple_client_bin.cc ('k') | net/tools/quic/quic_socket_utils.cc » ('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 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_simple_server_session.h" 5 #include "net/tools/quic/quic_simple_server_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 config_, connection_, &owner_, &session_helper_, &crypto_config_, 199 config_, connection_, &owner_, &session_helper_, &crypto_config_,
200 &compressed_certs_cache_)); 200 &compressed_certs_cache_));
201 MockClock clock; 201 MockClock clock;
202 handshake_message_.reset(crypto_config_.AddDefaultConfig( 202 handshake_message_.reset(crypto_config_.AddDefaultConfig(
203 QuicRandom::GetInstance(), &clock, 203 QuicRandom::GetInstance(), &clock,
204 QuicCryptoServerConfig::ConfigOptions())); 204 QuicCryptoServerConfig::ConfigOptions()));
205 session_->Initialize(); 205 session_->Initialize();
206 visitor_ = QuicConnectionPeer::GetVisitor(connection_); 206 visitor_ = QuicConnectionPeer::GetVisitor(connection_);
207 headers_stream_ = new MockQuicHeadersStream(session_.get()); 207 headers_stream_ = new MockQuicHeadersStream(session_.get());
208 QuicSpdySessionPeer::SetHeadersStream(session_.get(), headers_stream_); 208 QuicSpdySessionPeer::SetHeadersStream(session_.get(), headers_stream_);
209 // TODO(jri): Remove this line once tests pass.
210 FLAGS_quic_cede_correctly = false;
211 209
212 session_->OnConfigNegotiated(); 210 session_->OnConfigNegotiated();
213 } 211 }
214 212
215 StrictMock<MockQuicServerSessionVisitor> owner_; 213 StrictMock<MockQuicServerSessionVisitor> owner_;
216 StrictMock<MockQuicServerSessionHelper> session_helper_; 214 StrictMock<MockQuicServerSessionHelper> session_helper_;
217 MockQuicConnectionHelper helper_; 215 MockQuicConnectionHelper helper_;
218 MockAlarmFactory alarm_factory_; 216 MockAlarmFactory alarm_factory_;
219 StrictMock<MockQuicConnectionWithSendStreamData>* connection_; 217 StrictMock<MockQuicConnectionWithSendStreamData>* connection_;
220 QuicConfig config_; 218 QuicConfig config_;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false))); 624 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false)));
627 625
628 EXPECT_CALL(*connection_, SendBlocked(stream_to_open)); 626 EXPECT_CALL(*connection_, SendBlocked(stream_to_open));
629 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); 627 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0);
630 visitor_->OnRstStream(rst); 628 visitor_->OnRstStream(rst);
631 } 629 }
632 630
633 } // namespace 631 } // namespace
634 } // namespace test 632 } // namespace test
635 } // namespace net 633 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_client_bin.cc ('k') | net/tools/quic/quic_socket_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698