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 "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
6 #include "base/platform_test.h" | 7 #include "base/platform_test.h" |
7 #include "net/base/client_socket_factory.h" | 8 #include "net/base/client_socket_factory.h" |
8 #include "net/base/test_completion_callback.h" | 9 #include "net/base/test_completion_callback.h" |
9 #include "net/base/upload_data.h" | 10 #include "net/base/upload_data.h" |
10 #include "net/http/http_network_session.h" | 11 #include "net/http/http_network_session.h" |
11 #include "net/http/http_network_transaction.h" | 12 #include "net/http/http_network_transaction.h" |
12 #include "net/http/http_transaction_unittest.h" | 13 #include "net/http/http_transaction_unittest.h" |
13 #include "net/proxy/proxy_resolver_fixed.h" | 14 #include "net/proxy/proxy_resolver_fixed.h" |
14 #include "net/proxy/proxy_resolver_null.h" | 15 #include "net/proxy/proxy_resolver_null.h" |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 | 850 |
850 int rv = trans->Start(&request, &callback); | 851 int rv = trans->Start(&request, &callback); |
851 EXPECT_EQ(net::ERR_IO_PENDING, rv); | 852 EXPECT_EQ(net::ERR_IO_PENDING, rv); |
852 | 853 |
853 rv = callback.WaitForResult(); | 854 rv = callback.WaitForResult(); |
854 EXPECT_EQ(net::ERR_RESPONSE_HEADERS_TOO_BIG, rv); | 855 EXPECT_EQ(net::ERR_RESPONSE_HEADERS_TOO_BIG, rv); |
855 | 856 |
856 const net::HttpResponseInfo* response = trans->GetResponseInfo(); | 857 const net::HttpResponseInfo* response = trans->GetResponseInfo(); |
857 EXPECT_TRUE(response == NULL); | 858 EXPECT_TRUE(response == NULL); |
858 } | 859 } |
OLD | NEW |