OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/login/test/https_forwarder.h" | 5 #include "chrome/browser/chromeos/login/test/https_forwarder.h" |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
12 #include "base/path_service.h" | 13 #include "base/path_service.h" |
13 #include "base/values.h" | 14 #include "base/values.h" |
14 #include "net/cert/test_root_certs.h" | 15 #include "net/cert/test_root_certs.h" |
15 #include "net/cert/x509_certificate.h" | 16 #include "net/cert/x509_certificate.h" |
16 #include "net/test/python_utils.h" | 17 #include "net/test/python_utils.h" |
17 #include "net/test/spawned_test_server/base_test_server.h" | 18 #include "net/test/spawned_test_server/base_test_server.h" |
18 #include "net/test/spawned_test_server/local_test_server.h" | 19 #include "net/test/spawned_test_server/local_test_server.h" |
19 #include "url/third_party/mozilla/url_parse.h" | 20 #include "url/third_party/mozilla/url_parse.h" |
20 #include "url/url_canon.h" | 21 #include "url/url_canon.h" |
21 | 22 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 if (certs.size() != 1) | 137 if (certs.size() != 1) |
137 return false; | 138 return false; |
138 root_certs->Add(certs.front().get()); | 139 root_certs->Add(certs.front().get()); |
139 | 140 |
140 ssl_host_ = ssl_host; | 141 ssl_host_ = ssl_host; |
141 forwarding_server_.reset(new ForwardingServer(ssl_host, forward_target)); | 142 forwarding_server_.reset(new ForwardingServer(ssl_host, forward_target)); |
142 return forwarding_server_->Start(); | 143 return forwarding_server_->Start(); |
143 } | 144 } |
144 | 145 |
145 } // namespace chromeos | 146 } // namespace chromeos |
OLD | NEW |