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

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

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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_framer_test.cc ('k') | net/quic/quic_packet_creator_test.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/chunked_upload_data_stream.h" 9 #include "net/base/chunked_upload_data_stream.h"
10 #include "net/base/elements_upload_data_stream.h" 10 #include "net/base/elements_upload_data_stream.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 TestPacketWriterFactory writer_factory(socket); 203 TestPacketWriterFactory writer_factory(socket);
204 connection_ = new TestQuicConnection(SupportedVersions(GetParam()), 204 connection_ = new TestQuicConnection(SupportedVersions(GetParam()),
205 connection_id_, peer_addr_, 205 connection_id_, peer_addr_,
206 helper_.get(), writer_factory); 206 helper_.get(), writer_factory);
207 connection_->set_visitor(&visitor_); 207 connection_->set_visitor(&visitor_);
208 connection_->SetSendAlgorithm(send_algorithm_); 208 connection_->SetSendAlgorithm(send_algorithm_);
209 session_.reset(new QuicClientSession( 209 session_.reset(new QuicClientSession(
210 connection_, scoped_ptr<DatagramClientSocket>(socket), nullptr, 210 connection_, scoped_ptr<DatagramClientSocket>(socket), nullptr,
211 &transport_security_state_, make_scoped_ptr((QuicServerInfo*)nullptr), 211 &transport_security_state_, make_scoped_ptr((QuicServerInfo*)nullptr),
212 DefaultQuicConfig(), "CONNECTION_UNKNOWN", base::TimeTicks::Now(), 212 DefaultQuicConfig(), "CONNECTION_UNKNOWN", base::TimeTicks::Now(),
213 base::MessageLoop::current()->message_loop_proxy().get(), nullptr)); 213 base::MessageLoop::current()->task_runner().get(), nullptr));
214 session_->InitializeSession( 214 session_->InitializeSession(
215 QuicServerId(kDefaultServerHostName, kDefaultServerPort, 215 QuicServerId(kDefaultServerHostName, kDefaultServerPort,
216 /*is_secure=*/false, PRIVACY_MODE_DISABLED), 216 /*is_secure=*/false, PRIVACY_MODE_DISABLED),
217 &crypto_config_, &crypto_client_stream_factory_); 217 &crypto_config_, &crypto_client_stream_factory_);
218 session_->GetCryptoStream()->CryptoConnect(); 218 session_->GetCryptoStream()->CryptoConnect();
219 EXPECT_TRUE(session_->IsCryptoHandshakeConfirmed()); 219 EXPECT_TRUE(session_->IsCryptoHandshakeConfirmed());
220 stream_.reset(use_closing_stream_ ? 220 stream_.reset(use_closing_stream_ ?
221 new AutoClosingStream(session_->GetWeakPtr()) : 221 new AutoClosingStream(session_->GetWeakPtr()) :
222 new QuicHttpStream(session_->GetWeakPtr())); 222 new QuicHttpStream(session_->GetWeakPtr()));
223 } 223 }
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 // Set Delegate to nullptr and make sure EffectivePriority returns highest 752 // Set Delegate to nullptr and make sure EffectivePriority returns highest
753 // priority. 753 // priority.
754 reliable_stream->SetDelegate(nullptr); 754 reliable_stream->SetDelegate(nullptr);
755 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority, 755 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
756 reliable_stream->EffectivePriority()); 756 reliable_stream->EffectivePriority());
757 reliable_stream->SetDelegate(delegate); 757 reliable_stream->SetDelegate(delegate);
758 } 758 }
759 759
760 } // namespace test 760 } // namespace test
761 } // namespace net 761 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_packet_creator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698