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

Side by Side Diff: net/spdy/spdy_test_util_common.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: Extensions 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 24 matching lines...) Expand all
35 #include "net/ssl/ssl_config_service_defaults.h" 35 #include "net/ssl/ssl_config_service_defaults.h"
36 #include "net/url_request/url_request_context.h" 36 #include "net/url_request/url_request_context.h"
37 #include "net/url_request/url_request_context_storage.h" 37 #include "net/url_request/url_request_context_storage.h"
38 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
39 39
40 class GURL; 40 class GURL;
41 41
42 namespace net { 42 namespace net {
43 43
44 class BoundNetLog; 44 class BoundNetLog;
45 class CTVerifier;
46 class CTPolicyEnforcer;
45 class HostPortPair; 47 class HostPortPair;
46 class SpdySession; 48 class SpdySession;
47 class SpdySessionKey; 49 class SpdySessionKey;
48 class SpdySessionPool; 50 class SpdySessionPool;
49 class SpdyStream; 51 class SpdyStream;
50 class SpdyStreamRequest; 52 class SpdyStreamRequest;
51 53
52 // Default upload data used by both, mock objects and framer when creating 54 // Default upload data used by both, mock objects and framer when creating
53 // data frames. 55 // data frames.
54 const char kDefaultURL[] = "http://www.example.org/"; 56 const char kDefaultURL[] = "http://www.example.org/";
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 static std::unique_ptr<HttpNetworkSession> SpdyCreateSession( 185 static std::unique_ptr<HttpNetworkSession> SpdyCreateSession(
184 SpdySessionDependencies* session_deps); 186 SpdySessionDependencies* session_deps);
185 static HttpNetworkSession::Params CreateSessionParams( 187 static HttpNetworkSession::Params CreateSessionParams(
186 SpdySessionDependencies* session_deps); 188 SpdySessionDependencies* session_deps);
187 189
188 // NOTE: host_resolver must be ordered before http_auth_handler_factory. 190 // NOTE: host_resolver must be ordered before http_auth_handler_factory.
189 std::unique_ptr<MockHostResolverBase> host_resolver; 191 std::unique_ptr<MockHostResolverBase> host_resolver;
190 std::unique_ptr<CertVerifier> cert_verifier; 192 std::unique_ptr<CertVerifier> cert_verifier;
191 std::unique_ptr<ChannelIDService> channel_id_service; 193 std::unique_ptr<ChannelIDService> channel_id_service;
192 std::unique_ptr<TransportSecurityState> transport_security_state; 194 std::unique_ptr<TransportSecurityState> transport_security_state;
195 std::unique_ptr<CTVerifier> cert_transparency_verifier;
Ryan Hamilton 2016/06/16 03:31:04 s/cert_/ct_/? *shrug*
196 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer;
193 std::unique_ptr<ProxyService> proxy_service; 197 std::unique_ptr<ProxyService> proxy_service;
194 scoped_refptr<SSLConfigService> ssl_config_service; 198 scoped_refptr<SSLConfigService> ssl_config_service;
195 std::unique_ptr<MockClientSocketFactory> socket_factory; 199 std::unique_ptr<MockClientSocketFactory> socket_factory;
196 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; 200 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory;
197 HttpServerPropertiesImpl http_server_properties; 201 HttpServerPropertiesImpl http_server_properties;
198 bool enable_ip_pooling; 202 bool enable_ip_pooling;
199 bool enable_ping; 203 bool enable_ping;
200 bool enable_user_alternate_protocol_ports; 204 bool enable_user_alternate_protocol_ports;
201 bool enable_npn; 205 bool enable_npn;
202 bool enable_priority_dependencies; 206 bool enable_priority_dependencies;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 GURL default_url_; 569 GURL default_url_;
566 bool dependency_priorities_; 570 bool dependency_priorities_;
567 571
568 // Track a FIFO list of the stream_id of all created requests by priority. 572 // Track a FIFO list of the stream_id of all created requests by priority.
569 std::map<int, std::vector<int>> priority_to_stream_id_list_; 573 std::map<int, std::vector<int>> priority_to_stream_id_list_;
570 }; 574 };
571 575
572 } // namespace net 576 } // namespace net
573 577
574 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 578 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698