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 <memory> | 5 #include <memory> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "base/power_monitor/power_monitor_source.h" | 35 #include "base/power_monitor/power_monitor_source.h" |
36 #include "base/run_loop.h" | 36 #include "base/run_loop.h" |
37 #include "base/single_thread_task_runner.h" | 37 #include "base/single_thread_task_runner.h" |
38 #include "base/strings/string_number_conversions.h" | 38 #include "base/strings/string_number_conversions.h" |
39 #include "base/strings/string_piece.h" | 39 #include "base/strings/string_piece.h" |
40 #include "base/strings/string_split.h" | 40 #include "base/strings/string_split.h" |
41 #include "base/strings/string_util.h" | 41 #include "base/strings/string_util.h" |
42 #include "base/strings/stringprintf.h" | 42 #include "base/strings/stringprintf.h" |
43 #include "base/strings/utf_string_conversions.h" | 43 #include "base/strings/utf_string_conversions.h" |
44 #include "base/test/histogram_tester.h" | 44 #include "base/test/histogram_tester.h" |
45 #include "base/thread_task_runner_handle.h" | 45 #include "base/threading/thread_task_runner_handle.h" |
46 #include "base/values.h" | 46 #include "base/values.h" |
47 #include "net/base/chunked_upload_data_stream.h" | 47 #include "net/base/chunked_upload_data_stream.h" |
48 #include "net/base/directory_listing.h" | 48 #include "net/base/directory_listing.h" |
49 #include "net/base/elements_upload_data_stream.h" | 49 #include "net/base/elements_upload_data_stream.h" |
50 #include "net/base/load_flags.h" | 50 #include "net/base/load_flags.h" |
51 #include "net/base/load_timing_info.h" | 51 #include "net/base/load_timing_info.h" |
52 #include "net/base/load_timing_info_test_util.h" | 52 #include "net/base/load_timing_info_test_util.h" |
53 #include "net/base/net_errors.h" | 53 #include "net/base/net_errors.h" |
54 #include "net/base/net_module.h" | 54 #include "net/base/net_module.h" |
55 #include "net/base/request_priority.h" | 55 #include "net/base/request_priority.h" |
(...skipping 10060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10116 AddTestInterceptor()->set_main_intercept_job(std::move(job)); | 10116 AddTestInterceptor()->set_main_intercept_job(std::move(job)); |
10117 | 10117 |
10118 req->Start(); | 10118 req->Start(); |
10119 req->Cancel(); | 10119 req->Cancel(); |
10120 base::RunLoop().RunUntilIdle(); | 10120 base::RunLoop().RunUntilIdle(); |
10121 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status()); | 10121 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status()); |
10122 EXPECT_EQ(0, d.received_redirect_count()); | 10122 EXPECT_EQ(0, d.received_redirect_count()); |
10123 } | 10123 } |
10124 | 10124 |
10125 } // namespace net | 10125 } // namespace net |
OLD | NEW |