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

Unified Diff: net/quic/core/crypto/quic_crypto_server_config_test.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/core/crypto/quic_crypto_server_config.cc ('k') | net/quic/core/crypto/quic_server_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/quic_crypto_server_config_test.cc
diff --git a/net/quic/core/crypto/quic_crypto_server_config_test.cc b/net/quic/core/crypto/quic_crypto_server_config_test.cc
index 63694667488ebec8553c5c46ce23e7aed7192ec9..a3d98f299407b977bdb7fddd690f72157ac2df22 100644
--- a/net/quic/core/crypto/quic_crypto_server_config_test.cc
+++ b/net/quic/core/crypto/quic_crypto_server_config_test.cc
@@ -60,7 +60,8 @@ TEST(QuicCryptoServerConfigTest, CompressCerts) {
QuicCryptoServerConfigPeer peer(&server);
std::vector<string> certs = {"testcert"};
- scoped_refptr<ProofSource::Chain> chain(new ProofSource::Chain(certs));
+ QuicReferenceCountedPointer<ProofSource::Chain> chain(
+ new ProofSource::Chain(certs));
string compressed = QuicCryptoServerConfigPeer::CompressChain(
&compressed_certs_cache, chain, "", "", nullptr);
@@ -79,7 +80,8 @@ TEST(QuicCryptoServerConfigTest, CompressSameCertsTwice) {
// Compress the certs for the first time.
std::vector<string> certs = {"testcert"};
- scoped_refptr<ProofSource::Chain> chain(new ProofSource::Chain(certs));
+ QuicReferenceCountedPointer<ProofSource::Chain> chain(
+ new ProofSource::Chain(certs));
string common_certs = "";
string cached_certs = "";
@@ -106,7 +108,8 @@ TEST(QuicCryptoServerConfigTest, CompressDifferentCerts) {
QuicCryptoServerConfigPeer peer(&server);
std::vector<string> certs = {"testcert"};
- scoped_refptr<ProofSource::Chain> chain(new ProofSource::Chain(certs));
+ QuicReferenceCountedPointer<ProofSource::Chain> chain(
+ new ProofSource::Chain(certs));
string common_certs = "";
string cached_certs = "";
@@ -115,7 +118,8 @@ TEST(QuicCryptoServerConfigTest, CompressDifferentCerts) {
EXPECT_EQ(compressed_certs_cache.Size(), 1u);
// Compress a similar certs which only differs in the chain.
- scoped_refptr<ProofSource::Chain> chain2(new ProofSource::Chain(certs));
+ QuicReferenceCountedPointer<ProofSource::Chain> chain2(
+ new ProofSource::Chain(certs));
string compressed2 = QuicCryptoServerConfigPeer::CompressChain(
&compressed_certs_cache, chain2, common_certs, cached_certs, nullptr);
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.cc ('k') | net/quic/core/crypto/quic_server_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698