OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/policy/cloud/test_request_interceptor.h" | 5 #include "chrome/browser/policy/cloud/test_request_interceptor.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
17 #include "base/sequenced_task_runner.h" | 17 #include "base/sequenced_task_runner.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
20 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
21 #include "net/base/upload_bytes_element_reader.h" | 22 #include "net/base/upload_bytes_element_reader.h" |
22 #include "net/base/upload_data_stream.h" | 23 #include "net/base/upload_data_stream.h" |
23 #include "net/base/upload_element_reader.h" | 24 #include "net/base/upload_element_reader.h" |
24 #include "net/test/url_request/url_request_mock_http_job.h" | 25 #include "net/test/url_request/url_request_mock_http_job.h" |
25 #include "net/url_request/url_request_error_job.h" | 26 #include "net/url_request/url_request_error_job.h" |
26 #include "net/url_request/url_request_filter.h" | 27 #include "net/url_request/url_request_filter.h" |
27 #include "net/url_request/url_request_interceptor.h" | 28 #include "net/url_request/url_request_interceptor.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 FROM_HERE, | 336 FROM_HERE, |
336 base::Bind( | 337 base::Bind( |
337 base::IgnoreResult(&base::TaskRunner::PostTask), | 338 base::IgnoreResult(&base::TaskRunner::PostTask), |
338 base::ThreadTaskRunnerHandle::Get(), | 339 base::ThreadTaskRunnerHandle::Get(), |
339 FROM_HERE, | 340 FROM_HERE, |
340 run_loop.QuitClosure())); | 341 run_loop.QuitClosure())); |
341 run_loop.Run(); | 342 run_loop.Run(); |
342 } | 343 } |
343 | 344 |
344 } // namespace policy | 345 } // namespace policy |
OLD | NEW |