| 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_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 6148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6159 EXPECT_EQ(OK, callback.WaitForResult()); | 6159 EXPECT_EQ(OK, callback.WaitForResult()); |
| 6160 | 6160 |
| 6161 const HttpResponseInfo* response = trans->GetResponseInfo(); | 6161 const HttpResponseInfo* response = trans->GetResponseInfo(); |
| 6162 ASSERT_TRUE(response != NULL); | 6162 ASSERT_TRUE(response != NULL); |
| 6163 | 6163 |
| 6164 EXPECT_TRUE(response->headers != NULL); | 6164 EXPECT_TRUE(response->headers != NULL); |
| 6165 EXPECT_EQ("HTTP/1.0 200 OK", response->headers->GetStatusLine()); | 6165 EXPECT_EQ("HTTP/1.0 200 OK", response->headers->GetStatusLine()); |
| 6166 | 6166 |
| 6167 std::string response_data; | 6167 std::string response_data; |
| 6168 rv = ReadTransaction(trans.get(), &response_data); | 6168 rv = ReadTransaction(trans.get(), &response_data); |
| 6169 EXPECT_EQ(ERR_CONNECTION_CLOSED, rv); | 6169 EXPECT_EQ(OK, rv); |
| 6170 } | 6170 } |
| 6171 | 6171 |
| 6172 TEST_F(HttpNetworkTransactionSpdy3Test, UploadFileSmallerThanLength) { | 6172 TEST_F(HttpNetworkTransactionSpdy3Test, UploadFileSmallerThanLength) { |
| 6173 HttpRequestInfo request; | 6173 HttpRequestInfo request; |
| 6174 request.method = "POST"; | 6174 request.method = "POST"; |
| 6175 request.url = GURL("http://www.google.com/upload"); | 6175 request.url = GURL("http://www.google.com/upload"); |
| 6176 request.upload_data = new UploadData; | 6176 request.upload_data = new UploadData; |
| 6177 request.load_flags = 0; | 6177 request.load_flags = 0; |
| 6178 | 6178 |
| 6179 SessionDependencies session_deps; | 6179 SessionDependencies session_deps; |
| (...skipping 3370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9550 HttpStreamFactory::SetNextProtos(std::vector<std::string>()); | 9550 HttpStreamFactory::SetNextProtos(std::vector<std::string>()); |
| 9551 ClientSocketPoolManager::set_max_sockets_per_pool( | 9551 ClientSocketPoolManager::set_max_sockets_per_pool( |
| 9552 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_pool); | 9552 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_pool); |
| 9553 ClientSocketPoolManager::set_max_sockets_per_proxy_server( | 9553 ClientSocketPoolManager::set_max_sockets_per_proxy_server( |
| 9554 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_proxy_server); | 9554 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_proxy_server); |
| 9555 ClientSocketPoolManager::set_max_sockets_per_group( | 9555 ClientSocketPoolManager::set_max_sockets_per_group( |
| 9556 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_group); | 9556 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_group); |
| 9557 } | 9557 } |
| 9558 | 9558 |
| 9559 } // namespace net | 9559 } // namespace net |
| OLD | NEW |