Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: content/browser/loader/url_loader_factory_impl_unittest.cc

Issue 2968293002: Introduce SystemNetworkContextManager. (Closed)
Patch Set: Response to comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/browser/loader/url_loader_factory_impl.h" 5 #include "content/browser/loader/url_loader_factory_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
17 #include "base/location.h" 17 #include "base/location.h"
18 #include "base/memory/ptr_util.h" 18 #include "base/memory/ptr_util.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/run_loop.h" 22 #include "base/run_loop.h"
23 #include "content/browser/child_process_security_policy_impl.h" 23 #include "content/browser/child_process_security_policy_impl.h"
24 #include "content/browser/loader/mojo_async_resource_handler.h" 24 #include "content/browser/loader/mojo_async_resource_handler.h"
25 #include "content/browser/loader/navigation_resource_throttle.h" 25 #include "content/browser/loader/navigation_resource_throttle.h"
26 #include "content/browser/loader/resource_dispatcher_host_impl.h" 26 #include "content/browser/loader/resource_dispatcher_host_impl.h"
27 #include "content/browser/loader/resource_message_filter.h" 27 #include "content/browser/loader/resource_message_filter.h"
28 #include "content/browser/loader/resource_request_info_impl.h" 28 #include "content/browser/loader/resource_request_info_impl.h"
29 #include "content/browser/loader/test_url_loader_client.h"
30 #include "content/browser/loader_delegate_impl.h" 29 #include "content/browser/loader_delegate_impl.h"
31 #include "content/public/browser/resource_context.h" 30 #include "content/public/browser/resource_context.h"
32 #include "content/public/browser/resource_dispatcher_host_delegate.h" 31 #include "content/public/browser/resource_dispatcher_host_delegate.h"
33 #include "content/public/common/content_paths.h" 32 #include "content/public/common/content_paths.h"
34 #include "content/public/common/resource_request.h" 33 #include "content/public/common/resource_request.h"
35 #include "content/public/common/resource_request_completion_status.h" 34 #include "content/public/common/resource_request_completion_status.h"
36 #include "content/public/common/url_loader.mojom.h" 35 #include "content/public/common/url_loader.mojom.h"
37 #include "content/public/common/url_loader_factory.mojom.h" 36 #include "content/public/common/url_loader_factory.mojom.h"
38 #include "content/public/test/test_browser_context.h" 37 #include "content/public/test/test_browser_context.h"
39 #include "content/public/test/test_browser_thread_bundle.h" 38 #include "content/public/test/test_browser_thread_bundle.h"
39 #include "content/public/test/test_url_loader_client.h"
40 #include "mojo/public/c/system/data_pipe.h" 40 #include "mojo/public/c/system/data_pipe.h"
41 #include "mojo/public/c/system/types.h" 41 #include "mojo/public/c/system/types.h"
42 #include "mojo/public/cpp/bindings/binding.h" 42 #include "mojo/public/cpp/bindings/binding.h"
43 #include "mojo/public/cpp/system/data_pipe.h" 43 #include "mojo/public/cpp/system/data_pipe.h"
44 #include "net/base/io_buffer.h" 44 #include "net/base/io_buffer.h"
45 #include "net/base/net_errors.h" 45 #include "net/base/net_errors.h"
46 #include "net/http/http_response_headers.h" 46 #include "net/http/http_response_headers.h"
47 #include "net/http/http_response_info.h" 47 #include "net/http/http_response_info.h"
48 #include "net/http/http_status_code.h" 48 #include "net/http/http_status_code.h"
49 #include "net/http/http_util.h" 49 #include "net/http/http_util.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 ASSERT_FALSE(rdh_.GetURLRequest(GlobalRequestID(kChildId, kRequestId))); 564 ASSERT_FALSE(rdh_.GetURLRequest(GlobalRequestID(kChildId, kRequestId)));
565 } 565 }
566 566
567 INSTANTIATE_TEST_CASE_P(URLLoaderFactoryImplTest, 567 INSTANTIATE_TEST_CASE_P(URLLoaderFactoryImplTest,
568 URLLoaderFactoryImplTest, 568 URLLoaderFactoryImplTest,
569 ::testing::Values(128, 32 * 1024)); 569 ::testing::Values(128, 32 * 1024));
570 570
571 } // namespace 571 } // namespace
572 572
573 } // namespace content 573 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/test_url_loader_client.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698