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 "base/basictypes.h" | |
8 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
9 #include "net/cert/mock_cert_verifier.h" | 8 #include "net/cert/mock_cert_verifier.h" |
10 #include "net/dns/mock_host_resolver.h" | 9 #include "net/dns/mock_host_resolver.h" |
11 #include "net/http/http_network_session.h" | 10 #include "net/http/http_network_session.h" |
12 #include "net/http/http_server_properties_impl.h" | 11 #include "net/http/http_server_properties_impl.h" |
13 #include "net/http/http_transaction_test_util.h" | 12 #include "net/http/http_transaction_test_util.h" |
14 #include "net/http/transport_security_state.h" | 13 #include "net/http/transport_security_state.h" |
15 #include "net/log/net_log.h" | 14 #include "net/log/net_log.h" |
16 #include "net/proxy/proxy_service.h" | 15 #include "net/proxy/proxy_service.h" |
17 #include "net/socket/socket_test_util.h" | 16 #include "net/socket/socket_test_util.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 rv = trans->Start(&request_info, callback.callback(), BoundNetLog()); | 394 rv = trans->Start(&request_info, callback.callback(), BoundNetLog()); |
396 ASSERT_EQ(ERR_CONNECTION_RESET, callback.GetResult(rv)); | 395 ASSERT_EQ(ERR_CONNECTION_RESET, callback.GetResult(rv)); |
397 | 396 |
398 // network_accessed is true; the HTTP stack did try to make a connection. | 397 // network_accessed is true; the HTTP stack did try to make a connection. |
399 EXPECT_TRUE(trans->GetResponseInfo()->network_accessed); | 398 EXPECT_TRUE(trans->GetResponseInfo()->network_accessed); |
400 } | 399 } |
401 | 400 |
402 } // namespace | 401 } // namespace |
403 | 402 |
404 } // namespace net | 403 } // namespace net |
OLD | NEW |