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

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

Issue 407193002: QUIC - undo the chromium specific changes from the following CL which (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/quic/quic_client_session_test.cc ('k') | net/quic/quic_stream_factory.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 (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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 connection_id_, peer_addr_, 201 connection_id_, peer_addr_,
202 helper_.get(), writer_.get()); 202 helper_.get(), writer_.get());
203 connection_->set_visitor(&visitor_); 203 connection_->set_visitor(&visitor_);
204 connection_->SetSendAlgorithm(send_algorithm_); 204 connection_->SetSendAlgorithm(send_algorithm_);
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 make_scoped_ptr((QuicServerInfo*)NULL), 212 make_scoped_ptr((QuicServerInfo*)NULL),
212 DefaultQuicConfig(), 213 QuicServerId(kServerHostname, kServerPort,
214 false, PRIVACY_MODE_DISABLED),
215 DefaultQuicConfig(), &crypto_config_,
213 base::MessageLoop::current()-> 216 base::MessageLoop::current()->
214 message_loop_proxy().get(), 217 message_loop_proxy().get(),
215 NULL)); 218 NULL));
216 session_->InitializeSession(QuicServerId(kServerHostname, kServerPort, 219 session_->InitializeSession();
217 false, PRIVACY_MODE_DISABLED),
218 &crypto_config_,
219 &crypto_client_stream_factory_);
220 session_->GetCryptoStream()->CryptoConnect(); 220 session_->GetCryptoStream()->CryptoConnect();
221 EXPECT_TRUE(session_->IsCryptoHandshakeConfirmed()); 221 EXPECT_TRUE(session_->IsCryptoHandshakeConfirmed());
222 stream_.reset(use_closing_stream_ ? 222 stream_.reset(use_closing_stream_ ?
223 new AutoClosingStream(session_->GetWeakPtr()) : 223 new AutoClosingStream(session_->GetWeakPtr()) :
224 new QuicHttpStream(session_->GetWeakPtr())); 224 new QuicHttpStream(session_->GetWeakPtr()));
225 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(20)); 225 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(20));
226 } 226 }
227 227
228 void SetRequest(const std::string& method, 228 void SetRequest(const std::string& method,
229 const std::string& path, 229 const std::string& path,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // Set Delegate to NULL and make sure EffectivePriority returns highest 613 // Set Delegate to NULL and make sure EffectivePriority returns highest
614 // priority. 614 // priority.
615 reliable_stream->SetDelegate(NULL); 615 reliable_stream->SetDelegate(NULL);
616 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority, 616 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
617 reliable_stream->EffectivePriority()); 617 reliable_stream->EffectivePriority());
618 reliable_stream->SetDelegate(delegate); 618 reliable_stream->SetDelegate(delegate);
619 } 619 }
620 620
621 } // namespace test 621 } // namespace test
622 } // namespace net 622 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698