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 "net/url_request/url_request_test_util.h" | 5 #include "net/url_request/url_request_test_util.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
12 #include "net/base/cert_verifier.h" | 12 #include "net/base/cert_verifier.h" |
13 #include "net/base/default_server_bound_cert_store.h" | |
14 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
15 #include "net/base/mock_host_resolver.h" | 14 #include "net/base/mock_host_resolver.h" |
16 #include "net/base/server_bound_cert_service.h" | |
17 #include "net/http/http_network_session.h" | 15 #include "net/http/http_network_session.h" |
18 #include "net/http/http_server_properties_impl.h" | 16 #include "net/http/http_server_properties_impl.h" |
| 17 #include "net/ssl/default_server_bound_cert_store.h" |
| 18 #include "net/ssl/server_bound_cert_service.h" |
19 #include "net/url_request/static_http_user_agent_settings.h" | 19 #include "net/url_request/static_http_user_agent_settings.h" |
20 #include "net/url_request/url_request_job_factory_impl.h" | 20 #include "net/url_request/url_request_job_factory_impl.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 // These constants put the NetworkDelegate events of TestNetworkDelegate | 27 // These constants put the NetworkDelegate events of TestNetworkDelegate |
28 // into an order. They are used in conjunction with | 28 // into an order. They are used in conjunction with |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 URLRequestJob* job = main_intercept_job_; | 593 URLRequestJob* job = main_intercept_job_; |
594 main_intercept_job_ = NULL; | 594 main_intercept_job_ = NULL; |
595 return job; | 595 return job; |
596 } | 596 } |
597 | 597 |
598 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) { | 598 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) { |
599 main_intercept_job_ = job; | 599 main_intercept_job_ = job; |
600 } | 600 } |
601 | 601 |
602 } // namespace net | 602 } // namespace net |
OLD | NEW |