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

Side by Side Diff: net/quic/test_tools/crypto_test_utils.cc

Issue 2467563002: Add missing plumbing of ProofSource::Details in some QUIC codepaths (Closed)
Patch Set: Created 4 years, 1 month 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/quic/test_tools/crypto_test_utils.h" 5 #include "net/quic/test_tools/crypto_test_utils.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "crypto/openssl_util.h" 10 #include "crypto/openssl_util.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 324
325 class ProcessClientHelloCallback : public ProcessClientHelloResultCallback { 325 class ProcessClientHelloCallback : public ProcessClientHelloResultCallback {
326 public: 326 public:
327 explicit ProcessClientHelloCallback(FullChloGenerator* generator) 327 explicit ProcessClientHelloCallback(FullChloGenerator* generator)
328 : generator_(generator) {} 328 : generator_(generator) {}
329 void Run( 329 void Run(
330 QuicErrorCode error, 330 QuicErrorCode error,
331 const string& error_details, 331 const string& error_details,
332 std::unique_ptr<CryptoHandshakeMessage> message, 332 std::unique_ptr<CryptoHandshakeMessage> message,
333 std::unique_ptr<DiversificationNonce> diversification_nonce) override { 333 std::unique_ptr<DiversificationNonce> diversification_nonce,
334 std::unique_ptr<ProofSource::Details> proof_source_details) override {
334 generator_->ProcessClientHelloDone(std::move(message)); 335 generator_->ProcessClientHelloDone(std::move(message));
335 } 336 }
336 337
337 private: 338 private:
338 FullChloGenerator* generator_; 339 FullChloGenerator* generator_;
339 }; 340 };
340 341
341 std::unique_ptr<ProcessClientHelloCallback> GetProcessClientHelloCallback() { 342 std::unique_ptr<ProcessClientHelloCallback> GetProcessClientHelloCallback() {
342 return std::unique_ptr<ProcessClientHelloCallback>( 343 return std::unique_ptr<ProcessClientHelloCallback>(
343 new ProcessClientHelloCallback(this)); 344 new ProcessClientHelloCallback(this));
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 // Pass a inchoate CHLO. 1012 // Pass a inchoate CHLO.
1012 FullChloGenerator generator(crypto_config, server_ip, client_addr, clock, 1013 FullChloGenerator generator(crypto_config, server_ip, client_addr, clock,
1013 proof, compressed_certs_cache, out); 1014 proof, compressed_certs_cache, out);
1014 crypto_config->ValidateClientHello( 1015 crypto_config->ValidateClientHello(
1015 inchoate_chlo, client_addr.address(), server_ip, version, clock, proof, 1016 inchoate_chlo, client_addr.address(), server_ip, version, clock, proof,
1016 generator.GetValidateClientHelloCallback()); 1017 generator.GetValidateClientHelloCallback());
1017 } 1018 }
1018 1019
1019 } // namespace test 1020 } // namespace test
1020 } // namespace net 1021 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_crypto_server_stream.cc ('k') | net/quic/test_tools/crypto_test_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698