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

Side by Side Diff: net/cert_net/cert_net_fetcher_impl_unittest.cc

Issue 2681953002: Rename set_up_quic_server_info_factory to is_main_cache (Closed)
Patch Set: 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 | « content/shell/browser/shell_url_request_context_getter.cc ('k') | net/http/http_cache.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/cert_net/cert_net_fetcher_impl.h" 5 #include "net/cert_net/cert_net_fetcher_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 params.transport_security_state = transport_security_state(); 62 params.transport_security_state = transport_security_state();
63 params.cert_transparency_verifier = cert_transparency_verifier(); 63 params.cert_transparency_verifier = cert_transparency_verifier();
64 params.ct_policy_enforcer = ct_policy_enforcer(); 64 params.ct_policy_enforcer = ct_policy_enforcer();
65 params.proxy_service = proxy_service(); 65 params.proxy_service = proxy_service();
66 params.ssl_config_service = ssl_config_service(); 66 params.ssl_config_service = ssl_config_service();
67 params.http_server_properties = http_server_properties(); 67 params.http_server_properties = http_server_properties();
68 storage_.set_http_network_session( 68 storage_.set_http_network_session(
69 base::MakeUnique<HttpNetworkSession>(params)); 69 base::MakeUnique<HttpNetworkSession>(params));
70 storage_.set_http_transaction_factory(base::MakeUnique<HttpCache>( 70 storage_.set_http_transaction_factory(base::MakeUnique<HttpCache>(
71 storage_.http_network_session(), HttpCache::DefaultBackend::InMemory(0), 71 storage_.http_network_session(), HttpCache::DefaultBackend::InMemory(0),
72 false /* set_up_quic_server_info */)); 72 false /* is_main_cache */));
73 storage_.set_job_factory(base::MakeUnique<URLRequestJobFactoryImpl>()); 73 storage_.set_job_factory(base::MakeUnique<URLRequestJobFactoryImpl>());
74 } 74 }
75 75
76 ~RequestContext() override { AssertNoURLRequests(); } 76 ~RequestContext() override { AssertNoURLRequests(); }
77 77
78 private: 78 private:
79 URLRequestContextStorage storage_; 79 URLRequestContextStorage storage_;
80 }; 80 };
81 81
82 // Wait for the request to complete, and verify that it completed successfully 82 // Wait for the request to complete, and verify that it completed successfully
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 std::unique_ptr<CertNetFetcher::Request> request = 629 std::unique_ptr<CertNetFetcher::Request> request =
630 StartRequest(fetcher(), url); 630 StartRequest(fetcher(), url);
631 631
632 ShutDownFetcher(); 632 ShutDownFetcher();
633 VerifyFailure(ERR_ABORTED, request.get()); 633 VerifyFailure(ERR_ABORTED, request.get());
634 } 634 }
635 635
636 } // namespace 636 } // namespace
637 637
638 } // namespace net 638 } // namespace net
OLDNEW
« no previous file with comments | « content/shell/browser/shell_url_request_context_getter.cc ('k') | net/http/http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698