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

Side by Side Diff: net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc

Issue 2324183002: Implement QuicHttpStream::GetLoadTimingInfo (Closed)
Patch Set: fix flaky TestTwoRequests Created 4 years, 3 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/net.gypi ('k') | net/quic/chromium/quic_chromium_client_session.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chromium/bidirectional_stream_quic_impl.h" 5 #include "net/quic/chromium/bidirectional_stream_quic_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 session_.reset(new QuicChromiumClientSession( 402 session_.reset(new QuicChromiumClientSession(
403 connection_, std::move(socket), 403 connection_, std::move(socket),
404 /*stream_factory=*/nullptr, &crypto_client_stream_factory_, &clock_, 404 /*stream_factory=*/nullptr, &crypto_client_stream_factory_, &clock_,
405 &transport_security_state_, 405 &transport_security_state_,
406 base::WrapUnique(static_cast<QuicServerInfo*>(nullptr)), 406 base::WrapUnique(static_cast<QuicServerInfo*>(nullptr)),
407 QuicServerId(kDefaultServerHostName, kDefaultServerPort, 407 QuicServerId(kDefaultServerHostName, kDefaultServerPort,
408 PRIVACY_MODE_DISABLED), 408 PRIVACY_MODE_DISABLED),
409 kQuicYieldAfterPacketsRead, 409 kQuicYieldAfterPacketsRead,
410 QuicTime::Delta::FromMilliseconds(kQuicYieldAfterDurationMilliseconds), 410 QuicTime::Delta::FromMilliseconds(kQuicYieldAfterDurationMilliseconds),
411 /*cert_verify_flags=*/0, DefaultQuicConfig(), &crypto_config_, 411 /*cert_verify_flags=*/0, DefaultQuicConfig(), &crypto_config_,
412 "CONNECTION_UNKNOWN", base::TimeTicks::Now(), &push_promise_index_, 412 "CONNECTION_UNKNOWN", base::TimeTicks::Now(), base::TimeTicks::Now(),
413 base::ThreadTaskRunnerHandle::Get().get(), 413 &push_promise_index_, base::ThreadTaskRunnerHandle::Get().get(),
414 /*socket_performance_watcher=*/nullptr, net_log().bound().net_log())); 414 /*socket_performance_watcher=*/nullptr, net_log().bound().net_log()));
415 session_->Initialize(); 415 session_->Initialize();
416 session_->GetCryptoStream()->CryptoConnect(); 416 session_->GetCryptoStream()->CryptoConnect();
417 EXPECT_TRUE(session_->IsEncryptionEstablished()); 417 EXPECT_TRUE(session_->IsEncryptionEstablished());
418 } 418 }
419 419
420 void ConfirmHandshake() { 420 void ConfirmHandshake() {
421 crypto_client_stream_factory_.last_stream()->SendOnCryptoHandshakeEvent( 421 crypto_client_stream_factory_.last_stream()->SendOnCryptoHandshakeEvent(
422 QuicSession::HANDSHAKE_CONFIRMED); 422 QuicSession::HANDSHAKE_CONFIRMED);
423 } 423 }
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 1629
1630 base::RunLoop().RunUntilIdle(); 1630 base::RunLoop().RunUntilIdle();
1631 1631
1632 EXPECT_EQ(1, delegate->on_data_read_count()); 1632 EXPECT_EQ(1, delegate->on_data_read_count());
1633 EXPECT_EQ(0, delegate->on_data_sent_count()); 1633 EXPECT_EQ(0, delegate->on_data_sent_count());
1634 } 1634 }
1635 1635
1636 } // namespace test 1636 } // namespace test
1637 1637
1638 } // namespace net 1638 } // namespace net
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/chromium/quic_chromium_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698