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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const int kStageCompletedError = 1 << 8; | 48 const int kStageCompletedError = 1 << 8; |
49 const int kStageURLRequestDestroyed = 1 << 9; | 49 const int kStageURLRequestDestroyed = 1 << 9; |
50 const int kStageDestruction = 1 << 10; | 50 const int kStageDestruction = 1 << 10; |
51 | 51 |
52 } // namespace | 52 } // namespace |
53 | 53 |
54 TestURLRequestContext::TestURLRequestContext() | 54 TestURLRequestContext::TestURLRequestContext() |
55 : initialized_(false), | 55 : initialized_(false), |
56 client_socket_factory_(nullptr), | 56 client_socket_factory_(nullptr), |
57 proxy_delegate_(nullptr), | 57 proxy_delegate_(nullptr), |
| 58 ct_policy_enforcer_(nullptr), |
58 context_storage_(this) { | 59 context_storage_(this) { |
59 Init(); | 60 Init(); |
60 } | 61 } |
61 | 62 |
62 TestURLRequestContext::TestURLRequestContext(bool delay_initialization) | 63 TestURLRequestContext::TestURLRequestContext(bool delay_initialization) |
63 : initialized_(false), | 64 : initialized_(false), |
64 client_socket_factory_(nullptr), | 65 client_socket_factory_(nullptr), |
65 proxy_delegate_(nullptr), | 66 proxy_delegate_(nullptr), |
66 context_storage_(this) { | 67 context_storage_(this) { |
67 if (!delay_initialization) | 68 if (!delay_initialization) |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 URLRequest* request, | 660 URLRequest* request, |
660 NetworkDelegate* network_delegate) const { | 661 NetworkDelegate* network_delegate) const { |
661 return main_intercept_job_.release(); | 662 return main_intercept_job_.release(); |
662 } | 663 } |
663 | 664 |
664 void TestJobInterceptor::set_main_intercept_job(scoped_ptr<URLRequestJob> job) { | 665 void TestJobInterceptor::set_main_intercept_job(scoped_ptr<URLRequestJob> job) { |
665 main_intercept_job_ = std::move(job); | 666 main_intercept_job_ = std::move(job); |
666 } | 667 } |
667 | 668 |
668 } // namespace net | 669 } // namespace net |
OLD | NEW |