OLD | NEW |
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 "net/http/http_network_layer.h" | 5 #include "net/http/http_network_layer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "net/cert/ct_policy_enforcer.h" | 10 #include "net/cert/ct_policy_enforcer.h" |
11 #include "net/cert/mock_cert_verifier.h" | 11 #include "net/cert/mock_cert_verifier.h" |
12 #include "net/cert/multi_log_ct_verifier.h" | 12 #include "net/cert/multi_log_ct_verifier.h" |
13 #include "net/dns/mock_host_resolver.h" | 13 #include "net/dns/mock_host_resolver.h" |
14 #include "net/http/http_network_session.h" | 14 #include "net/http/http_network_session.h" |
15 #include "net/http/http_server_properties_impl.h" | 15 #include "net/http/http_server_properties_impl.h" |
16 #include "net/http/http_transaction_test_util.h" | 16 #include "net/http/http_transaction_test_util.h" |
17 #include "net/http/transport_security_state.h" | 17 #include "net/http/transport_security_state.h" |
18 #include "net/log/net_log_with_source.h" | 18 #include "net/log/net_log_with_source.h" |
19 #include "net/proxy/proxy_service.h" | 19 #include "net/proxy/proxy_service.h" |
20 #include "net/socket/socket_test_util.h" | 20 #include "net/socket/socket_test_util.h" |
21 #include "net/spdy/spdy_session_pool.h" | 21 #include "net/spdy/chromium/spdy_session_pool.h" |
22 #include "net/ssl/ssl_config_service_defaults.h" | 22 #include "net/ssl/ssl_config_service_defaults.h" |
23 #include "net/test/gtest_util.h" | 23 #include "net/test/gtest_util.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "testing/platform_test.h" | 26 #include "testing/platform_test.h" |
27 | 27 |
28 using net::test::IsError; | 28 using net::test::IsError; |
29 using net::test::IsOk; | 29 using net::test::IsOk; |
30 | 30 |
31 namespace net { | 31 namespace net { |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 rv = trans->Start(&request_info, callback.callback(), NetLogWithSource()); | 406 rv = trans->Start(&request_info, callback.callback(), NetLogWithSource()); |
407 ASSERT_THAT(callback.GetResult(rv), IsError(ERR_CONNECTION_RESET)); | 407 ASSERT_THAT(callback.GetResult(rv), IsError(ERR_CONNECTION_RESET)); |
408 | 408 |
409 // network_accessed is true; the HTTP stack did try to make a connection. | 409 // network_accessed is true; the HTTP stack did try to make a connection. |
410 EXPECT_TRUE(trans->GetResponseInfo()->network_accessed); | 410 EXPECT_TRUE(trans->GetResponseInfo()->network_accessed); |
411 } | 411 } |
412 | 412 |
413 } // namespace | 413 } // namespace |
414 | 414 |
415 } // namespace net | 415 } // namespace net |
OLD | NEW |