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

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

Issue 1552783003: Always expect certificates in QuicChromiumClientSession::CanPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WildcardCert
Patch Set: fix comments Created 4 years, 11 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_chromium_client_session.cc ('k') | net/quic/quic_stream_factory_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 <vector> 5 #include <vector>
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 629
630 TEST_P(QuicNetworkTransactionTest, ForceQuicWithErrorConnecting) { 630 TEST_P(QuicNetworkTransactionTest, ForceQuicWithErrorConnecting) {
631 params_.origin_to_force_quic_on = 631 params_.origin_to_force_quic_on =
632 HostPortPair::FromString("mail.example.com:443"); 632 HostPortPair::FromString("mail.example.com:443");
633 633
634 MockQuicData mock_quic_data1; 634 MockQuicData mock_quic_data1;
635 mock_quic_data1.AddRead(ASYNC, ERR_SOCKET_NOT_CONNECTED); 635 mock_quic_data1.AddRead(ASYNC, ERR_SOCKET_NOT_CONNECTED);
636 636
637 MockQuicData mock_quic_data2; 637 MockQuicData mock_quic_data2;
638 mock_quic_data2.AddRead(ASYNC, ERR_SOCKET_NOT_CONNECTED); 638 mock_quic_data2.AddRead(ASYNC, ERR_SOCKET_NOT_CONNECTED);
639 crypto_client_stream_factory_.AddProofVerifyDetails(&verify_details_);
639 640
640 mock_quic_data1.AddSocketDataToFactory(&socket_factory_); 641 mock_quic_data1.AddSocketDataToFactory(&socket_factory_);
641 mock_quic_data2.AddSocketDataToFactory(&socket_factory_); 642 mock_quic_data2.AddSocketDataToFactory(&socket_factory_);
642 643
643 CreateSession(); 644 CreateSession();
644 645
645 EXPECT_EQ(0U, test_network_quality_estimator_->watcher_count()); 646 EXPECT_EQ(0U, test_network_quality_estimator_->watcher_count());
646 for (size_t i = 0; i < 2; ++i) { 647 for (size_t i = 0; i < 2; ++i) {
647 scoped_ptr<HttpNetworkTransaction> trans( 648 scoped_ptr<HttpNetworkTransaction> trans(
648 new HttpNetworkTransaction(DEFAULT_PRIORITY, session_.get())); 649 new HttpNetworkTransaction(DEFAULT_PRIORITY, session_.get()));
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1839 request_.url = GURL("https://www.example.org:443"); 1840 request_.url = GURL("https://www.example.org:443");
1840 AddHangingNonAlternateProtocolSocketData(); 1841 AddHangingNonAlternateProtocolSocketData();
1841 CreateSessionWithNextProtos(); 1842 CreateSessionWithNextProtos();
1842 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); 1843 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE);
1843 SendRequestAndExpectQuicResponse("hello!"); 1844 SendRequestAndExpectQuicResponse("hello!");
1844 EXPECT_TRUE(rtt_observer_.rtt_notification_received()); 1845 EXPECT_TRUE(rtt_observer_.rtt_notification_received());
1845 } 1846 }
1846 1847
1847 } // namespace test 1848 } // namespace test
1848 } // namespace net 1849 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.cc ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698