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

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

Issue 330333006: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
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_http_stream.h" 5 #include "net/quic/quic_http_stream.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/test_completion_callback.h" 10 #include "net/base/test_completion_callback.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 connection_->SetReceiveAlgorithm(receive_algorithm_); 205 connection_->SetReceiveAlgorithm(receive_algorithm_);
206 crypto_config_.SetDefaults(); 206 crypto_config_.SetDefaults();
207 session_.reset( 207 session_.reset(
208 new QuicClientSession(connection_, 208 new QuicClientSession(connection_,
209 scoped_ptr<DatagramClientSocket>(socket), 209 scoped_ptr<DatagramClientSocket>(socket),
210 writer_.Pass(), NULL, 210 writer_.Pass(), NULL,
211 &crypto_client_stream_factory_, 211 &crypto_client_stream_factory_,
212 make_scoped_ptr((QuicServerInfo*)NULL), 212 make_scoped_ptr((QuicServerInfo*)NULL),
213 QuicServerId(kServerHostname, kServerPort, 213 QuicServerId(kServerHostname, kServerPort,
214 false, PRIVACY_MODE_DISABLED), 214 false, PRIVACY_MODE_DISABLED),
215 DefaultQuicConfig(), 215 DefaultQuicConfig(), &crypto_config_,
216 kInitialFlowControlWindowForTest, &crypto_config_,
217 base::MessageLoop::current()-> 216 base::MessageLoop::current()->
218 message_loop_proxy().get(), 217 message_loop_proxy().get(),
219 NULL)); 218 NULL));
220 session_->GetCryptoStream()->CryptoConnect(); 219 session_->GetCryptoStream()->CryptoConnect();
221 EXPECT_TRUE(session_->IsCryptoHandshakeConfirmed()); 220 EXPECT_TRUE(session_->IsCryptoHandshakeConfirmed());
222 stream_.reset(use_closing_stream_ ? 221 stream_.reset(use_closing_stream_ ?
223 new AutoClosingStream(session_->GetWeakPtr()) : 222 new AutoClosingStream(session_->GetWeakPtr()) :
224 new QuicHttpStream(session_->GetWeakPtr())); 223 new QuicHttpStream(session_->GetWeakPtr()));
225 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(20)); 224 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(20));
226 } 225 }
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 // Set Delegate to NULL and make sure EffectivePriority returns highest 610 // Set Delegate to NULL and make sure EffectivePriority returns highest
612 // priority. 611 // priority.
613 reliable_stream->SetDelegate(NULL); 612 reliable_stream->SetDelegate(NULL);
614 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority, 613 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
615 reliable_stream->EffectivePriority()); 614 reliable_stream->EffectivePriority());
616 reliable_stream->SetDelegate(delegate); 615 reliable_stream->SetDelegate(delegate);
617 } 616 }
618 617
619 } // namespace test 618 } // namespace test
620 } // namespace net 619 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698