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

Unified Diff: net/url_request/url_request_test_util.h

Issue 2067843003: Require a CTVerifier and CTPolicyEnforcer for TLS/QUIC sockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_util.h
diff --git a/net/url_request/url_request_test_util.h b/net/url_request/url_request_test_util.h
index 49a12f5fc994cf1e3376ea526afb5ce9e10419fd..54e45fd9e84103de5b2793631719bf196781f129 100644
--- a/net/url_request/url_request_test_util.h
+++ b/net/url_request/url_request_test_util.h
@@ -85,13 +85,13 @@ class TestURLRequestContext : public URLRequestContext {
context_storage_.set_sdch_manager(std::move(sdch_manager));
}
- CTPolicyEnforcer* ct_policy_enforcer() { return ct_policy_enforcer_; }
- void set_ct_policy_enforcer(CTPolicyEnforcer* ct_policy_enforcer) {
- ct_policy_enforcer_ = ct_policy_enforcer;
+ void SetCTPolicyEnforcer(
+ std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer) {
+ context_storage_.set_ct_policy_enforcer(std::move(ct_policy_enforcer));
}
private:
- bool initialized_;
+ bool initialized_ = false;
// Optional parameters to override default values. Note that values that
// point to other objects the TestURLRequestContext creates will be
@@ -99,11 +99,9 @@ class TestURLRequestContext : public URLRequestContext {
std::unique_ptr<HttpNetworkSession::Params> http_network_session_params_;
// Not owned:
- ClientSocketFactory* client_socket_factory_;
+ ClientSocketFactory* client_socket_factory_ = nullptr;
- ProxyDelegate* proxy_delegate_;
-
- CTPolicyEnforcer* ct_policy_enforcer_;
+ ProxyDelegate* proxy_delegate_ = nullptr;
protected:
URLRequestContextStorage context_storage_;
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698