| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <math.h> // ceil | 5 #include <math.h> // ceil |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "net/base/client_socket_factory.h" | |
| 9 #include "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
| 10 #include "net/base/host_resolver_unittest.h" | 9 #include "net/base/host_resolver_unittest.h" |
| 11 #include "net/base/socket_test_util.h" | |
| 12 #include "net/base/ssl_client_socket.h" | |
| 13 #include "net/base/ssl_info.h" | 10 #include "net/base/ssl_info.h" |
| 14 #include "net/base/test_completion_callback.h" | 11 #include "net/base/test_completion_callback.h" |
| 15 #include "net/base/upload_data.h" | 12 #include "net/base/upload_data.h" |
| 16 #include "net/http/http_auth_handler_ntlm.h" | 13 #include "net/http/http_auth_handler_ntlm.h" |
| 17 #include "net/http/http_network_session.h" | 14 #include "net/http/http_network_session.h" |
| 18 #include "net/http/http_network_transaction.h" | 15 #include "net/http/http_network_transaction.h" |
| 19 #include "net/http/http_transaction_unittest.h" | 16 #include "net/http/http_transaction_unittest.h" |
| 20 #include "net/proxy/proxy_config_service_fixed.h" | 17 #include "net/proxy/proxy_config_service_fixed.h" |
| 18 #include "net/socket/client_socket_factory.h" |
| 19 #include "net/socket/socket_test_util.h" |
| 20 #include "net/socket/ssl_client_socket.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 #include "testing/platform_test.h" | 22 #include "testing/platform_test.h" |
| 23 | 23 |
| 24 //----------------------------------------------------------------------------- | 24 //----------------------------------------------------------------------------- |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 | 27 |
| 28 // Create a proxy service which fails on all requests (falls back to direct). | 28 // Create a proxy service which fails on all requests (falls back to direct). |
| 29 ProxyService* CreateNullProxyService() { | 29 ProxyService* CreateNullProxyService() { |
| 30 return ProxyService::CreateNull(); | 30 return ProxyService::CreateNull(); |
| (...skipping 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3155 rv = trans->Start(&request, &callback); | 3155 rv = trans->Start(&request, &callback); |
| 3156 ASSERT_EQ(ERR_IO_PENDING, rv); | 3156 ASSERT_EQ(ERR_IO_PENDING, rv); |
| 3157 rv = callback.WaitForResult(); | 3157 rv = callback.WaitForResult(); |
| 3158 | 3158 |
| 3159 // If we bypassed the cache, we would have gotten a failure while resolving | 3159 // If we bypassed the cache, we would have gotten a failure while resolving |
| 3160 // "www.google.com". | 3160 // "www.google.com". |
| 3161 EXPECT_EQ(ERR_NAME_NOT_RESOLVED, rv); | 3161 EXPECT_EQ(ERR_NAME_NOT_RESOLVED, rv); |
| 3162 } | 3162 } |
| 3163 | 3163 |
| 3164 } // namespace net | 3164 } // namespace net |
| OLD | NEW |