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

Side by Side Diff: net/url_request/url_request_test_util.cc

Issue 1781663005: Initialize net::TestURLRequestContext::ct_policy_enforcer_. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698