Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1055)

Side by Side Diff: net/tools/quic/test_tools/quic_test_client.cc

Issue 2129263002: Revert "Revert of QUIC - Race Cert Verification with host resolution if (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cronet unittest Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_stream_factory_peer.cc ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698