OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // A standalone tool for testing MCS connections and the MCS client on their | 5 // A standalone tool for testing MCS connections and the MCS client on their |
6 // own. | 6 // own. |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <cstddef> | 10 #include <cstddef> |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 std::unique_ptr<MyTestURLRequestContext> context_; | 171 std::unique_ptr<MyTestURLRequestContext> context_; |
172 }; | 172 }; |
173 | 173 |
174 // A cert verifier that access all certificates. | 174 // A cert verifier that access all certificates. |
175 class MyTestCertVerifier : public net::CertVerifier { | 175 class MyTestCertVerifier : public net::CertVerifier { |
176 public: | 176 public: |
177 MyTestCertVerifier() {} | 177 MyTestCertVerifier() {} |
178 ~MyTestCertVerifier() override {} | 178 ~MyTestCertVerifier() override {} |
179 | 179 |
180 int Verify(net::X509Certificate* cert, | 180 int Verify(const net::CertVerifier::RequestParams& params, |
181 const std::string& hostname, | |
182 const std::string& ocsp_response, | |
183 int flags, | |
184 net::CRLSet* crl_set, | 181 net::CRLSet* crl_set, |
185 net::CertVerifyResult* verify_result, | 182 net::CertVerifyResult* verify_result, |
186 const net::CompletionCallback& callback, | 183 const net::CompletionCallback& callback, |
187 std::unique_ptr<Request>* out_req, | 184 std::unique_ptr<Request>* out_req, |
188 const net::BoundNetLog& net_log) override { | 185 const net::BoundNetLog& net_log) override { |
189 return net::OK; | 186 return net::OK; |
190 } | 187 } |
191 }; | 188 }; |
192 | 189 |
193 class MCSProbeAuthPreferences : public net::HttpAuthPreferences { | 190 class MCSProbeAuthPreferences : public net::HttpAuthPreferences { |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 | 510 |
514 return 0; | 511 return 0; |
515 } | 512 } |
516 | 513 |
517 } // namespace | 514 } // namespace |
518 } // namespace gcm | 515 } // namespace gcm |
519 | 516 |
520 int main(int argc, char* argv[]) { | 517 int main(int argc, char* argv[]) { |
521 return gcm::MCSProbeMain(argc, argv); | 518 return gcm::MCSProbeMain(argc, argv); |
522 } | 519 } |
OLD | NEW |