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

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

Issue 2621983004: Improve HttpStreamFactory NetLog events (Closed)
Patch Set: Address Bence comments and change back to auto Created 3 years, 10 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/log/net_log_source_type_list.h ('k') | net/spdy/spdy_network_transaction_unittest.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 <memory> 5 #include <memory>
6 #include <ostream> 6 #include <ostream>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 params_.transport_security_state = &transport_security_state_; 487 params_.transport_security_state = &transport_security_state_;
488 params_.cert_transparency_verifier = cert_transparency_verifier_.get(); 488 params_.cert_transparency_verifier = cert_transparency_verifier_.get();
489 params_.ct_policy_enforcer = &ct_policy_enforcer_; 489 params_.ct_policy_enforcer = &ct_policy_enforcer_;
490 params_.socket_performance_watcher_factory = 490 params_.socket_performance_watcher_factory =
491 &test_socket_performance_watcher_factory_; 491 &test_socket_performance_watcher_factory_;
492 params_.proxy_service = proxy_service_.get(); 492 params_.proxy_service = proxy_service_.get();
493 params_.ssl_config_service = ssl_config_service_.get(); 493 params_.ssl_config_service = ssl_config_service_.get();
494 params_.http_auth_handler_factory = auth_handler_factory_.get(); 494 params_.http_auth_handler_factory = auth_handler_factory_.get();
495 params_.http_server_properties = &http_server_properties_; 495 params_.http_server_properties = &http_server_properties_;
496 params_.quic_supported_versions = SupportedVersions(version_); 496 params_.quic_supported_versions = SupportedVersions(version_);
497 params_.net_log = net_log_.bound().net_log();
497 for (const char* host : 498 for (const char* host :
498 {kDefaultServerHostName, "www.example.org", "news.example.org", 499 {kDefaultServerHostName, "www.example.org", "news.example.org",
499 "bar.example.org", "foo.example.org", "invalid.example.org", 500 "bar.example.org", "foo.example.org", "invalid.example.org",
500 "mail.example.com"}) { 501 "mail.example.com"}) {
501 params_.quic_host_whitelist.insert(host); 502 params_.quic_host_whitelist.insert(host);
502 } 503 }
503 504
504 session_.reset(new HttpNetworkSession(params_)); 505 session_.reset(new HttpNetworkSession(params_));
505 session_->quic_stream_factory()->set_require_confirmation(false); 506 session_->quic_stream_factory()->set_require_confirmation(false);
506 ASSERT_EQ(params_.quic_socket_receive_buffer_size, 507 ASSERT_EQ(params_.quic_socket_receive_buffer_size,
(...skipping 2928 matching lines...) Expand 10 before | Expand all | Expand 10 after
3435 AddHangingSocketData(); 3436 AddHangingSocketData();
3436 3437
3437 SendRequestAndExpectQuicResponse(origin1_); 3438 SendRequestAndExpectQuicResponse(origin1_);
3438 SendRequestAndExpectQuicResponse(origin2_); 3439 SendRequestAndExpectQuicResponse(origin2_);
3439 3440
3440 EXPECT_TRUE(AllDataConsumed()); 3441 EXPECT_TRUE(AllDataConsumed());
3441 } 3442 }
3442 3443
3443 } // namespace test 3444 } // namespace test
3444 } // namespace net 3445 } // namespace net
OLDNEW
« no previous file with comments | « net/log/net_log_source_type_list.h ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698