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 "net/tools/quic/test_tools/quic_test_client.h" | 5 #include "net/tools/quic/test_tools/quic_test_client.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // if (!cert.get()) { | 75 // if (!cert.get()) { |
76 // return QUIC_FAILURE; | 76 // return QUIC_FAILURE; |
77 // } | 77 // } |
78 // | 78 // |
79 // common_name_ = cert->subject().GetDisplayName(); | 79 // common_name_ = cert->subject().GetDisplayName(); |
80 cert_sct_ = cert_sct; | 80 cert_sct_ = cert_sct; |
81 | 81 |
82 return QUIC_SUCCESS; | 82 return QUIC_SUCCESS; |
83 } | 83 } |
84 | 84 |
| 85 QuicAsyncStatus VerifyCertChain( |
| 86 const std::string& hostname, |
| 87 const std::vector<std::string>& certs, |
| 88 const ProofVerifyContext* verify_context, |
| 89 std::string* error_details, |
| 90 std::unique_ptr<ProofVerifyDetails>* verify_details, |
| 91 ProofVerifierCallback* callback) override { |
| 92 return QUIC_SUCCESS; |
| 93 } |
| 94 |
85 const string& common_name() const { return common_name_; } | 95 const string& common_name() const { return common_name_; } |
86 | 96 |
87 const string& cert_sct() const { return cert_sct_; } | 97 const string& cert_sct() const { return cert_sct_; } |
88 | 98 |
89 private: | 99 private: |
90 string common_name_; | 100 string common_name_; |
91 string cert_sct_; | 101 string cert_sct_; |
92 }; | 102 }; |
93 | 103 |
94 } // anonymous namespace | 104 } // anonymous namespace |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 CHECK(message); | 685 CHECK(message); |
676 message->headers()->SetRequestVersion( | 686 message->headers()->SetRequestVersion( |
677 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); | 687 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); |
678 message->headers()->SetRequestMethod( | 688 message->headers()->SetRequestMethod( |
679 HTTPMessage::MethodToString(HttpConstants::GET)); | 689 HTTPMessage::MethodToString(HttpConstants::GET)); |
680 message->headers()->SetRequestUri(uri); | 690 message->headers()->SetRequestUri(uri); |
681 } | 691 } |
682 | 692 |
683 } // namespace test | 693 } // namespace test |
684 } // namespace net | 694 } // namespace net |
OLD | NEW |