OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/file_util.h" | |
15 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" |
16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/test/test_file_util.h" | 22 #include "base/test/test_file_util.h" |
23 #include "net/base/auth.h" | 23 #include "net/base/auth.h" |
24 #include "net/base/capturing_net_log.h" | 24 #include "net/base/capturing_net_log.h" |
25 #include "net/base/completion_callback.h" | 25 #include "net/base/completion_callback.h" |
(...skipping 13178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13204 EXPECT_EQ(ERR_IO_PENDING, rv); | 13204 EXPECT_EQ(ERR_IO_PENDING, rv); |
13205 | 13205 |
13206 rv = callback.WaitForResult(); | 13206 rv = callback.WaitForResult(); |
13207 EXPECT_EQ(ERR_CONNECTION_RESET, rv); | 13207 EXPECT_EQ(ERR_CONNECTION_RESET, rv); |
13208 | 13208 |
13209 const HttpResponseInfo* response = trans->GetResponseInfo(); | 13209 const HttpResponseInfo* response = trans->GetResponseInfo(); |
13210 EXPECT_TRUE(response == NULL); | 13210 EXPECT_TRUE(response == NULL); |
13211 } | 13211 } |
13212 | 13212 |
13213 } // namespace net | 13213 } // namespace net |
OLD | NEW |