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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 #endif | 10 #endif |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/format_macros.h" | 19 #include "base/format_macros.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/message_loop.h" | 21 #include "base/message_loop.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
23 #include "base/process_util.h" | 23 #include "base/process_util.h" |
24 #include "base/string_number_conversions.h" | 24 #include "base/string_number_conversions.h" |
25 #include "base/string_piece.h" | |
26 #include "base/string_util.h" | 25 #include "base/string_util.h" |
27 #include "base/stringprintf.h" | 26 #include "base/stringprintf.h" |
| 27 #include "base/strings/string_piece.h" |
28 #include "base/strings/string_split.h" | 28 #include "base/strings/string_split.h" |
29 #include "base/utf_string_conversions.h" | 29 #include "base/utf_string_conversions.h" |
30 #include "net/base/capturing_net_log.h" | 30 #include "net/base/capturing_net_log.h" |
31 #include "net/base/load_flags.h" | 31 #include "net/base/load_flags.h" |
32 #include "net/base/load_timing_info.h" | 32 #include "net/base/load_timing_info.h" |
33 #include "net/base/load_timing_info_test_util.h" | 33 #include "net/base/load_timing_info_test_util.h" |
34 #include "net/base/net_errors.h" | 34 #include "net/base/net_errors.h" |
35 #include "net/base/net_log.h" | 35 #include "net/base/net_log.h" |
36 #include "net/base/net_log_unittest.h" | 36 #include "net/base/net_log_unittest.h" |
37 #include "net/base/net_module.h" | 37 #include "net/base/net_module.h" |
(...skipping 5740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5778 | 5778 |
5779 EXPECT_FALSE(r.is_pending()); | 5779 EXPECT_FALSE(r.is_pending()); |
5780 EXPECT_EQ(1, d->response_started_count()); | 5780 EXPECT_EQ(1, d->response_started_count()); |
5781 EXPECT_FALSE(d->received_data_before_response()); | 5781 EXPECT_FALSE(d->received_data_before_response()); |
5782 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size)); | 5782 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size)); |
5783 } | 5783 } |
5784 } | 5784 } |
5785 #endif // !defined(DISABLE_FTP_SUPPORT) | 5785 #endif // !defined(DISABLE_FTP_SUPPORT) |
5786 | 5786 |
5787 } // namespace net | 5787 } // namespace net |
OLD | NEW |