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 | |
95 const string& common_name() const { return common_name_; } | 85 const string& common_name() const { return common_name_; } |
96 | 86 |
97 const string& cert_sct() const { return cert_sct_; } | 87 const string& cert_sct() const { return cert_sct_; } |
98 | 88 |
99 private: | 89 private: |
100 string common_name_; | 90 string common_name_; |
101 string cert_sct_; | 91 string cert_sct_; |
102 }; | 92 }; |
103 | 93 |
104 } // anonymous namespace | 94 } // anonymous namespace |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 CHECK(message); | 675 CHECK(message); |
686 message->headers()->SetRequestVersion( | 676 message->headers()->SetRequestVersion( |
687 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); | 677 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); |
688 message->headers()->SetRequestMethod( | 678 message->headers()->SetRequestMethod( |
689 HTTPMessage::MethodToString(HttpConstants::GET)); | 679 HTTPMessage::MethodToString(HttpConstants::GET)); |
690 message->headers()->SetRequestUri(uri); | 680 message->headers()->SetRequestUri(uri); |
691 } | 681 } |
692 | 682 |
693 } // namespace test | 683 } // namespace test |
694 } // namespace net | 684 } // namespace net |
OLD | NEW |