OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "net/base/net_errors.h" | 6 #include "net/base/net_errors.h" |
7 #include "net/base/test_completion_callback.h" | 7 #include "net/base/test_completion_callback.h" |
8 #include "net/base/test_data_directory.h" | 8 #include "net/base/test_data_directory.h" |
9 #include "net/cert/cert_status_flags.h" | 9 #include "net/cert/cert_status_flags.h" |
10 #include "net/cert/cert_verify_result.h" | 10 #include "net/cert/cert_verify_result.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 TestProofVerifierCallback(TestCompletionCallback* comp_callback, | 34 TestProofVerifierCallback(TestCompletionCallback* comp_callback, |
35 bool* ok, | 35 bool* ok, |
36 string* error_details) | 36 string* error_details) |
37 : comp_callback_(comp_callback), | 37 : comp_callback_(comp_callback), |
38 ok_(ok), | 38 ok_(ok), |
39 error_details_(error_details) {} | 39 error_details_(error_details) {} |
40 | 40 |
41 virtual void Run(bool ok, | 41 virtual void Run(bool ok, |
42 const string& error_details, | 42 const string& error_details, |
43 scoped_ptr<ProofVerifyDetails>* details) OVERRIDE { | 43 scoped_ptr<ProofVerifyDetails>* details) override { |
44 *ok_ = ok; | 44 *ok_ = ok; |
45 *error_details_ = error_details; | 45 *error_details_ = error_details; |
46 | 46 |
47 comp_callback_->callback().Run(0); | 47 comp_callback_->callback().Run(0); |
48 } | 48 } |
49 | 49 |
50 private: | 50 private: |
51 TestCompletionCallback* const comp_callback_; | 51 TestCompletionCallback* const comp_callback_; |
52 bool* const ok_; | 52 bool* const ok_; |
53 string* const error_details_; | 53 string* const error_details_; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 wrong_certs.push_back(certs[i]); | 362 wrong_certs.push_back(certs[i]); |
363 } | 363 } |
364 RunVerification( | 364 RunVerification( |
365 verifier.get(), hostname, server_config, wrong_certs, signature, | 365 verifier.get(), hostname, server_config, wrong_certs, signature, |
366 false); | 366 false); |
367 } | 367 } |
368 } | 368 } |
369 | 369 |
370 } // namespace test | 370 } // namespace test |
371 } // namespace net | 371 } // namespace net |
OLD | NEW |