OLD | NEW |
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 #include "net/spdy/spdy_test_util_common.h" | 5 #include "net/spdy/spdy_test_util_common.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <cstddef> | 9 #include <cstddef> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "net/base/host_port_pair.h" | 17 #include "net/base/host_port_pair.h" |
18 #include "net/cert/ct_policy_enforcer.h" | 18 #include "net/cert/ct_policy_enforcer.h" |
19 #include "net/cert/ct_policy_status.h" | 19 #include "net/cert/ct_policy_status.h" |
20 #include "net/cert/mock_cert_verifier.h" | 20 #include "net/cert/mock_cert_verifier.h" |
21 #include "net/cert/multi_log_ct_verifier.h" | 21 #include "net/cert/multi_log_ct_verifier.h" |
22 #include "net/http/http_cache.h" | 22 #include "net/http/http_cache.h" |
23 #include "net/http/http_network_session.h" | 23 #include "net/http/http_network_session.h" |
24 #include "net/http/http_network_transaction.h" | 24 #include "net/http/http_network_transaction.h" |
25 #include "net/http/http_server_properties_impl.h" | 25 #include "net/http/http_server_properties_impl.h" |
| 26 #include "net/log/net_log_with_source.h" |
26 #include "net/socket/next_proto.h" | 27 #include "net/socket/next_proto.h" |
27 #include "net/socket/socket_test_util.h" | 28 #include "net/socket/socket_test_util.h" |
28 #include "net/socket/ssl_client_socket.h" | 29 #include "net/socket/ssl_client_socket.h" |
29 #include "net/socket/transport_client_socket_pool.h" | 30 #include "net/socket/transport_client_socket_pool.h" |
30 #include "net/spdy/buffered_spdy_framer.h" | 31 #include "net/spdy/buffered_spdy_framer.h" |
31 #include "net/spdy/spdy_alt_svc_wire_format.h" | 32 #include "net/spdy/spdy_alt_svc_wire_format.h" |
32 #include "net/spdy/spdy_framer.h" | 33 #include "net/spdy/spdy_framer.h" |
33 #include "net/spdy/spdy_http_utils.h" | 34 #include "net/spdy/spdy_http_utils.h" |
34 #include "net/spdy/spdy_session.h" | 35 #include "net/spdy/spdy_session.h" |
35 #include "net/spdy/spdy_session_pool.h" | 36 #include "net/spdy/spdy_session_pool.h" |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 headers[GetSchemeKey()] = scheme.c_str(); | 1140 headers[GetSchemeKey()] = scheme.c_str(); |
1140 headers[GetPathKey()] = path.c_str(); | 1141 headers[GetPathKey()] = path.c_str(); |
1141 if (content_length) { | 1142 if (content_length) { |
1142 std::string length_str = base::Int64ToString(*content_length); | 1143 std::string length_str = base::Int64ToString(*content_length); |
1143 headers["content-length"] = length_str; | 1144 headers["content-length"] = length_str; |
1144 } | 1145 } |
1145 return headers; | 1146 return headers; |
1146 } | 1147 } |
1147 | 1148 |
1148 } // namespace net | 1149 } // namespace net |
OLD | NEW |