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

Side by Side Diff: net/url_request/url_request_unittest.cc

Issue 16501002: Give more request types a TransportSecurityState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar call sites. Created 7 years, 6 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 | Annotate | Revision Log
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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 #endif 10 #endif
(...skipping 5064 matching lines...) Expand 10 before | Expand all | Expand 10 after
5075 5075
5076 base::MessageLoop::current()->Run(); 5076 base::MessageLoop::current()->Run();
5077 5077
5078 EXPECT_EQ(1, d.response_started_count()); 5078 EXPECT_EQ(1, d.response_started_count());
5079 } 5079 }
5080 5080
5081 // Now create a new HttpCache with a different ssl_session_cache_shard value. 5081 // Now create a new HttpCache with a different ssl_session_cache_shard value.
5082 HttpNetworkSession::Params params; 5082 HttpNetworkSession::Params params;
5083 params.host_resolver = default_context_.host_resolver(); 5083 params.host_resolver = default_context_.host_resolver();
5084 params.cert_verifier = default_context_.cert_verifier(); 5084 params.cert_verifier = default_context_.cert_verifier();
5085 params.transport_security_state = default_context_.transport_security_state();
5085 params.proxy_service = default_context_.proxy_service(); 5086 params.proxy_service = default_context_.proxy_service();
5086 params.ssl_config_service = default_context_.ssl_config_service(); 5087 params.ssl_config_service = default_context_.ssl_config_service();
5087 params.http_auth_handler_factory = 5088 params.http_auth_handler_factory =
5088 default_context_.http_auth_handler_factory(); 5089 default_context_.http_auth_handler_factory();
5089 params.network_delegate = &default_network_delegate_; 5090 params.network_delegate = &default_network_delegate_;
5090 params.http_server_properties = default_context_.http_server_properties(); 5091 params.http_server_properties = default_context_.http_server_properties();
5091 params.ssl_session_cache_shard = "alternate"; 5092 params.ssl_session_cache_shard = "alternate";
5092 5093
5093 scoped_ptr<net::HttpCache> cache(new net::HttpCache( 5094 scoped_ptr<net::HttpCache> cache(new net::HttpCache(
5094 new net::HttpNetworkSession(params), 5095 new net::HttpNetworkSession(params),
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
5840 5841
5841 EXPECT_FALSE(r.is_pending()); 5842 EXPECT_FALSE(r.is_pending());
5842 EXPECT_EQ(1, d->response_started_count()); 5843 EXPECT_EQ(1, d->response_started_count());
5843 EXPECT_FALSE(d->received_data_before_response()); 5844 EXPECT_FALSE(d->received_data_before_response());
5844 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size)); 5845 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size));
5845 } 5846 }
5846 } 5847 }
5847 #endif // !defined(DISABLE_FTP_SUPPORT) 5848 #endif // !defined(DISABLE_FTP_SUPPORT)
5848 5849
5849 } // namespace net 5850 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698