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 "chrome/browser/ssl/ssl_client_certificate_selector_test.h" | 5 #include "chrome/browser/ssl/ssl_client_certificate_selector_test.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 io_loop_finished_event_.Wait(); | 75 io_loop_finished_event_.Wait(); |
76 | 76 |
77 auth_requestor_ = NULL; | 77 auth_requestor_ = NULL; |
78 } | 78 } |
79 | 79 |
80 void SSLClientCertificateSelectorTestBase::SetUpOnIOThread() { | 80 void SSLClientCertificateSelectorTestBase::SetUpOnIOThread() { |
81 url_request_ = MakeURLRequest(url_request_context_getter_.get()); | 81 url_request_ = MakeURLRequest(url_request_context_getter_.get()); |
82 | 82 |
83 auth_requestor_ = new StrictMock<SSLClientAuthRequestorMock>( | 83 auth_requestor_ = new StrictMock<SSLClientAuthRequestorMock>( |
84 url_request_, | 84 url_request_, cert_request_info_.get()); |
85 cert_request_info_); | |
86 | 85 |
87 io_loop_finished_event_.Signal(); | 86 io_loop_finished_event_.Signal(); |
88 } | 87 } |
89 | 88 |
90 void SSLClientCertificateSelectorTestBase::CleanUpOnIOThread() { | 89 void SSLClientCertificateSelectorTestBase::CleanUpOnIOThread() { |
91 delete url_request_; | 90 delete url_request_; |
92 | 91 |
93 io_loop_finished_event_.Signal(); | 92 io_loop_finished_event_.Signal(); |
94 } | 93 } |
95 | 94 |
96 net::URLRequest* SSLClientCertificateSelectorTestBase::MakeURLRequest( | 95 net::URLRequest* SSLClientCertificateSelectorTestBase::MakeURLRequest( |
97 net::URLRequestContextGetter* context_getter) { | 96 net::URLRequestContextGetter* context_getter) { |
98 net::URLRequest* request = | 97 net::URLRequest* request = |
99 context_getter->GetURLRequestContext()->CreateRequest( | 98 context_getter->GetURLRequestContext()->CreateRequest( |
100 GURL("https://example"), NULL); | 99 GURL("https://example"), NULL); |
101 return request; | 100 return request; |
102 } | 101 } |
OLD | NEW |