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

Unified Diff: net/quic/test_tools/crypto_test_utils.cc

Issue 2353763002: Use refcounted ownership for ValidateClientHelloResultCallback::Result (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/test_tools/crypto_test_utils.cc
diff --git a/net/quic/test_tools/crypto_test_utils.cc b/net/quic/test_tools/crypto_test_utils.cc
index d92e57d9fc61ad6149a94f2f7540f956b6596092..1e1bda42c5edf571eaf0eb4461bd1053425b02d4 100644
--- a/net/quic/test_tools/crypto_test_utils.cc
+++ b/net/quic/test_tools/crypto_test_utils.cc
@@ -292,14 +292,14 @@ class FullChloGenerator : public ValidateClientHelloResultCallback {
compressed_certs_cache_(compressed_certs_cache),
out_(out) {}
- void Run(std::unique_ptr<ValidateClientHelloResultCallback::Result> result,
+ void Run(scoped_refptr<ValidateClientHelloResultCallback::Result> result,
std::unique_ptr<ProofSource::Details> /* details */) override {
QuicCryptoNegotiatedParameters params;
string error_details;
DiversificationNonce diversification_nonce;
CryptoHandshakeMessage rej;
crypto_config_->ProcessClientHello(
- *result, /*reject_only=*/false, /*connection_id=*/1, server_ip_,
+ result, /*reject_only=*/false, /*connection_id=*/1, server_ip_,
client_addr_, AllSupportedVersions().front(), AllSupportedVersions(),
/*use_stateless_rejects=*/true, /*server_designated_connection_id=*/0,
clock_, QuicRandom::GetInstance(), compressed_certs_cache_, &params,

Powered by Google App Engine
This is Rietveld 408576698