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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/numerics/safe_conversions.h" | 18 #include "base/numerics/safe_conversions.h" |
19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
20 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "content/browser/blob_storage/blob_url_loader_factory.h" | 22 #include "content/browser/blob_storage/blob_url_loader_factory.h" |
23 #include "content/browser/loader/test_url_loader_client.h" | |
24 #include "content/browser/url_loader_factory_getter.h" | 23 #include "content/browser/url_loader_factory_getter.h" |
25 #include "content/public/test/test_browser_thread_bundle.h" | 24 #include "content/public/test/test_browser_thread_bundle.h" |
| 25 #include "content/public/test/test_url_loader_client.h" |
26 #include "mojo/common/data_pipe_utils.h" | 26 #include "mojo/common/data_pipe_utils.h" |
27 #include "net/base/net_errors.h" | 27 #include "net/base/net_errors.h" |
28 #include "net/base/request_priority.h" | 28 #include "net/base/request_priority.h" |
29 #include "net/base/test_completion_callback.h" | 29 #include "net/base/test_completion_callback.h" |
30 #include "net/disk_cache/disk_cache.h" | 30 #include "net/disk_cache/disk_cache.h" |
31 #include "net/http/http_byte_range.h" | 31 #include "net/http/http_byte_range.h" |
32 #include "net/http/http_request_headers.h" | 32 #include "net/http/http_request_headers.h" |
33 #include "net/http/http_response_headers.h" | 33 #include "net/http/http_response_headers.h" |
34 #include "net/traffic_annotation/network_traffic_annotation_test_helper.h" | 34 #include "net/traffic_annotation/network_traffic_annotation_test_helper.h" |
35 #include "net/url_request/url_request.h" | 35 #include "net/url_request/url_request.h" |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 "uuid", "", "", storage::BlobStatus::ERR_INVALID_CONSTRUCTION_ARGUMENTS); | 659 "uuid", "", "", storage::BlobStatus::ERR_INVALID_CONSTRUCTION_ARGUMENTS); |
660 TestErrorRequest(500); | 660 TestErrorRequest(500); |
661 } | 661 } |
662 | 662 |
663 // The parameter's value determines whether BlobURLLoaderFactory is used. | 663 // The parameter's value determines whether BlobURLLoaderFactory is used. |
664 INSTANTIATE_TEST_CASE_P(BlobURLRequestJobTest, | 664 INSTANTIATE_TEST_CASE_P(BlobURLRequestJobTest, |
665 BlobURLRequestJobTest, | 665 BlobURLRequestJobTest, |
666 ::testing::Bool()); | 666 ::testing::Bool()); |
667 | 667 |
668 } // namespace content | 668 } // namespace content |
OLD | NEW |