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

Unified Diff: net/tools/quic/quic_dispatcher_test.cc

Issue 2511643002: Refactoring output of ProofSource::GetProof (no functional changes). (Closed)
Patch Set: Refactoring output of ProofSource::GetProof (no functional changes). 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/fake_proof_source.cc ('k') | net/tools/quic/stateless_rejector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher_test.cc
diff --git a/net/tools/quic/quic_dispatcher_test.cc b/net/tools/quic/quic_dispatcher_test.cc
index 46ad07e9b266ccbf07b7ddc137e2bae60d5cf7f0..9e898f56f2da2ae4a237a39b2ce50f7689886225 100644
--- a/net/tools/quic/quic_dispatcher_test.cc
+++ b/net/tools/quic/quic_dispatcher_test.cc
@@ -1064,7 +1064,7 @@ class BufferedPacketStoreTest
BufferedPacketStoreTest()
: QuicDispatcherTest(),
client_addr_(Loopback4(), 1234),
- proof_(new QuicCryptoProof) {
+ signed_config_(new QuicSignedServerConfig) {
FLAGS_quic_use_cheap_stateless_rejects =
GetParam().support_cheap_stateless_reject;
FLAGS_enable_quic_stateless_reject_support =
@@ -1082,7 +1082,8 @@ class BufferedPacketStoreTest
// Pass an inchoate CHLO.
CryptoTestUtils::GenerateFullCHLO(
chlo, &crypto_config_, server_ip_, client_addr_, version, clock_,
- proof_, QuicDispatcherPeer::GetCache(dispatcher_.get()), &full_chlo_);
+ signed_config_, QuicDispatcherPeer::GetCache(dispatcher_.get()),
+ &full_chlo_);
}
string SerializeFullCHLO() {
@@ -1092,7 +1093,7 @@ class BufferedPacketStoreTest
protected:
IPAddress server_ip_;
IPEndPoint client_addr_;
- scoped_refptr<QuicCryptoProof> proof_;
+ scoped_refptr<QuicSignedServerConfig> signed_config_;
const QuicClock* clock_;
CryptoHandshakeMessage full_chlo_;
};
@@ -1512,7 +1513,7 @@ class AsyncGetProofTest : public QuicDispatcherTest {
std::unique_ptr<FakeProofSource>(new FakeProofSource())),
client_addr_(net::test::Loopback4(), 1234),
crypto_config_peer_(&crypto_config_),
- proof_(new QuicCryptoProof) {
+ signed_config_(new QuicSignedServerConfig) {
FLAGS_enable_async_get_proof = true;
FLAGS_enable_quic_stateless_reject_support = true;
FLAGS_quic_use_cheap_stateless_rejects = true;
@@ -1530,7 +1531,8 @@ class AsyncGetProofTest : public QuicDispatcherTest {
// Pass an inchoate CHLO.
CryptoTestUtils::GenerateFullCHLO(
chlo_, &crypto_config_, server_ip_, client_addr_, version, clock_,
- proof_, QuicDispatcherPeer::GetCache(dispatcher_.get()), &full_chlo_);
+ signed_config_, QuicDispatcherPeer::GetCache(dispatcher_.get()),
+ &full_chlo_);
GetFakeProofSource()->Activate();
}
@@ -1580,7 +1582,7 @@ class AsyncGetProofTest : public QuicDispatcherTest {
private:
QuicCryptoServerConfigPeer crypto_config_peer_;
IPAddress server_ip_;
- scoped_refptr<QuicCryptoProof> proof_;
+ scoped_refptr<QuicSignedServerConfig> signed_config_;
const QuicClock* clock_;
CryptoHandshakeMessage chlo_;
CryptoHandshakeMessage full_chlo_;
« no previous file with comments | « net/quic/test_tools/fake_proof_source.cc ('k') | net/tools/quic/stateless_rejector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698