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

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

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr Created 4 years 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
« no previous file with comments | « net/quic/test_tools/fake_proof_source.h ('k') | net/quic/test_tools/quic_crypto_server_config_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/fake_proof_source.cc
diff --git a/net/quic/test_tools/fake_proof_source.cc b/net/quic/test_tools/fake_proof_source.cc
index 8f6422282129817f16c552e06c591728db1b13a8..8507b8796dda24856fc9eb1ea47d5389ff2b175a 100644
--- a/net/quic/test_tools/fake_proof_source.cc
+++ b/net/quic/test_tools/fake_proof_source.cc
@@ -41,14 +41,15 @@ void FakeProofSource::Activate() {
active_ = true;
}
-bool FakeProofSource::GetProof(const QuicSocketAddress& server_address,
- const string& hostname,
- const string& server_config,
- QuicVersion quic_version,
- StringPiece chlo_hash,
- const QuicTagVector& connection_options,
- scoped_refptr<ProofSource::Chain>* out_chain,
- QuicCryptoProof* out_proof) {
+bool FakeProofSource::GetProof(
+ const QuicSocketAddress& server_address,
+ const string& hostname,
+ const string& server_config,
+ QuicVersion quic_version,
+ StringPiece chlo_hash,
+ const QuicTagVector& connection_options,
+ QuicReferenceCountedPointer<ProofSource::Chain>* out_chain,
+ QuicCryptoProof* out_proof) {
LOG(WARNING) << "Synchronous GetProof called";
return delegate_->GetProof(server_address, hostname, server_config,
quic_version, chlo_hash, connection_options,
@@ -64,7 +65,7 @@ void FakeProofSource::GetProof(
const QuicTagVector& connection_options,
std::unique_ptr<ProofSource::Callback> callback) {
if (!active_) {
- scoped_refptr<Chain> chain;
+ QuicReferenceCountedPointer<Chain> chain;
QuicCryptoProof proof;
const bool ok =
GetProof(server_address, hostname, server_config, quic_version,
@@ -88,7 +89,7 @@ void FakeProofSource::InvokePendingCallback(int n) {
const Params& params = params_[n];
- scoped_refptr<ProofSource::Chain> chain;
+ QuicReferenceCountedPointer<ProofSource::Chain> chain;
QuicCryptoProof proof;
const bool ok = delegate_->GetProof(
params.server_address, params.hostname, params.server_config,
« no previous file with comments | « net/quic/test_tools/fake_proof_source.h ('k') | net/quic/test_tools/quic_crypto_server_config_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698