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