| 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 <stdint.h> | 12 #include <stdint.h> |
| 13 | 13 |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 #include <limits> | 15 #include <limits> |
| 16 | 16 |
| 17 #include "base/bind.h" | 17 #include "base/bind.h" |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/files/file_path.h" | 19 #include "base/files/file_path.h" |
| 20 #include "base/files/file_util.h" | 20 #include "base/files/file_util.h" |
| 21 #include "base/files/scoped_temp_dir.h" | 21 #include "base/files/scoped_temp_dir.h" |
| 22 #include "base/format_macros.h" | 22 #include "base/format_macros.h" |
| 23 #include "base/json/json_reader.h" | 23 #include "base/json/json_reader.h" |
| 24 #include "base/location.h" | 24 #include "base/location.h" |
| 25 #include "base/macros.h" |
| 25 #include "base/memory/scoped_ptr.h" | 26 #include "base/memory/scoped_ptr.h" |
| 26 #include "base/memory/weak_ptr.h" | 27 #include "base/memory/weak_ptr.h" |
| 27 #include "base/message_loop/message_loop.h" | 28 #include "base/message_loop/message_loop.h" |
| 28 #include "base/path_service.h" | 29 #include "base/path_service.h" |
| 29 #include "base/power_monitor/power_monitor.h" | 30 #include "base/power_monitor/power_monitor.h" |
| 30 #include "base/power_monitor/power_monitor_source.h" | 31 #include "base/power_monitor/power_monitor_source.h" |
| 31 #include "base/run_loop.h" | 32 #include "base/run_loop.h" |
| 32 #include "base/single_thread_task_runner.h" | 33 #include "base/single_thread_task_runner.h" |
| 33 #include "base/strings/string_number_conversions.h" | 34 #include "base/strings/string_number_conversions.h" |
| 34 #include "base/strings/string_piece.h" | 35 #include "base/strings/string_piece.h" |
| (...skipping 9729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9764 AddTestInterceptor()->set_main_intercept_job(std::move(job)); | 9765 AddTestInterceptor()->set_main_intercept_job(std::move(job)); |
| 9765 | 9766 |
| 9766 req->Start(); | 9767 req->Start(); |
| 9767 req->Cancel(); | 9768 req->Cancel(); |
| 9768 base::RunLoop().RunUntilIdle(); | 9769 base::RunLoop().RunUntilIdle(); |
| 9769 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status()); | 9770 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status()); |
| 9770 EXPECT_EQ(0, d.received_redirect_count()); | 9771 EXPECT_EQ(0, d.received_redirect_count()); |
| 9771 } | 9772 } |
| 9772 | 9773 |
| 9773 } // namespace net | 9774 } // namespace net |
| OLD | NEW |