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