| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 | 847 |
| 848 class ResourceDispatcherHostTest : public testing::TestWithParam<TestConfig>, | 848 class ResourceDispatcherHostTest : public testing::TestWithParam<TestConfig>, |
| 849 public IPC::Sender { | 849 public IPC::Sender { |
| 850 public: | 850 public: |
| 851 typedef ResourceDispatcherHostImpl::LoadInfo LoadInfo; | 851 typedef ResourceDispatcherHostImpl::LoadInfo LoadInfo; |
| 852 typedef ResourceDispatcherHostImpl::LoadInfoList LoadInfoList; | 852 typedef ResourceDispatcherHostImpl::LoadInfoList LoadInfoList; |
| 853 typedef ResourceDispatcherHostImpl::LoadInfoMap LoadInfoMap; | 853 typedef ResourceDispatcherHostImpl::LoadInfoMap LoadInfoMap; |
| 854 | 854 |
| 855 ResourceDispatcherHostTest() | 855 ResourceDispatcherHostTest() |
| 856 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP), | 856 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP), |
| 857 host_(base::Bind(base::Bind(&DownloadResourceHandler::Create))), | 857 host_(base::Bind(&DownloadResourceHandler::Create)), |
| 858 use_test_ssl_certificate_(false), | 858 use_test_ssl_certificate_(false), |
| 859 send_data_received_acks_(false), | 859 send_data_received_acks_(false), |
| 860 auto_advance_(false) { | 860 auto_advance_(false) { |
| 861 host_.SetLoaderDelegate(&loader_delegate_); | 861 host_.SetLoaderDelegate(&loader_delegate_); |
| 862 browser_context_.reset(new TestBrowserContext()); | 862 browser_context_.reset(new TestBrowserContext()); |
| 863 BrowserContext::EnsureResourceContextInitialized(browser_context_.get()); | 863 BrowserContext::EnsureResourceContextInitialized(browser_context_.get()); |
| 864 base::RunLoop().RunUntilIdle(); | 864 base::RunLoop().RunUntilIdle(); |
| 865 filter_ = MakeForwardingFilter(); | 865 filter_ = MakeForwardingFilter(); |
| 866 // TODO(cbentzel): Better way to get URLRequestContext? | 866 // TODO(cbentzel): Better way to get URLRequestContext? |
| 867 net::URLRequestContext* request_context = | 867 net::URLRequestContext* request_context = |
| (...skipping 2951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3819 return nullptr; | 3819 return nullptr; |
| 3820 } | 3820 } |
| 3821 | 3821 |
| 3822 INSTANTIATE_TEST_CASE_P( | 3822 INSTANTIATE_TEST_CASE_P( |
| 3823 ResourceDispatcherHostTests, | 3823 ResourceDispatcherHostTests, |
| 3824 ResourceDispatcherHostTest, | 3824 ResourceDispatcherHostTest, |
| 3825 testing::Values(TestConfig::kDefault, | 3825 testing::Values(TestConfig::kDefault, |
| 3826 TestConfig::kOptimizeIPCForSmallResourceEnabled)); | 3826 TestConfig::kOptimizeIPCForSmallResourceEnabled)); |
| 3827 | 3827 |
| 3828 } // namespace content | 3828 } // namespace content |
| OLD | NEW |