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

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

Issue 2671333004: Convert class-full-of-statics CryptoTestUtils into a namespace (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream_test.cc ('k') | net/url_request/url_request_quic_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/stateless_rejector_test.cc
diff --git a/net/tools/quic/stateless_rejector_test.cc b/net/tools/quic/stateless_rejector_test.cc
index 23b6e3a53be8f447e50da971fdef2ebcbdcbb43c..fdc883ef337ad86c567be97c2ecd153c3852e661 100644
--- a/net/tools/quic/stateless_rejector_test.cc
+++ b/net/tools/quic/stateless_rejector_test.cc
@@ -74,10 +74,10 @@ std::vector<TestParams> GetTestParams() {
class StatelessRejectorTest : public ::testing::TestWithParam<TestParams> {
public:
StatelessRejectorTest()
- : proof_source_(CryptoTestUtils::ProofSourceForTesting()),
+ : proof_source_(crypto_test_utils::ProofSourceForTesting()),
config_(QuicCryptoServerConfig::TESTING,
QuicRandom::GetInstance(),
- CryptoTestUtils::ProofSourceForTesting()),
+ crypto_test_utils::ProofSourceForTesting()),
config_peer_(&config_),
compressed_certs_cache_(
QuicCompressedCertsCache::kQuicCompressedCertsCacheSize),
@@ -170,7 +170,7 @@ INSTANTIATE_TEST_CASE_P(Flags,
TEST_P(StatelessRejectorTest, InvalidChlo) {
// clang-format off
- const CryptoHandshakeMessage client_hello = CryptoTestUtils::Message(
+ const CryptoHandshakeMessage client_hello = crypto_test_utils::Message(
"CHLO",
"PDMD", "X509",
"COPT", "SREJ",
@@ -195,7 +195,7 @@ TEST_P(StatelessRejectorTest, InvalidChlo) {
TEST_P(StatelessRejectorTest, ValidChloWithoutSrejSupport) {
// clang-format off
- const CryptoHandshakeMessage client_hello = CryptoTestUtils::Message(
+ const CryptoHandshakeMessage client_hello = crypto_test_utils::Message(
"CHLO",
"PDMD", "X509",
"AEAD", "AESG",
@@ -214,7 +214,7 @@ TEST_P(StatelessRejectorTest, ValidChloWithoutSrejSupport) {
TEST_P(StatelessRejectorTest, RejectChlo) {
// clang-format off
- const CryptoHandshakeMessage client_hello = CryptoTestUtils::Message(
+ const CryptoHandshakeMessage client_hello = crypto_test_utils::Message(
"CHLO",
"PDMD", "X509",
"AEAD", "AESG",
@@ -254,12 +254,12 @@ TEST_P(StatelessRejectorTest, RejectChlo) {
}
TEST_P(StatelessRejectorTest, AcceptChlo) {
- const uint64_t xlct = CryptoTestUtils::LeafCertHashForTesting();
+ const uint64_t xlct = crypto_test_utils::LeafCertHashForTesting();
const string xlct_hex =
"#" + QuicTextUtils::HexEncode(reinterpret_cast<const char*>(&xlct),
sizeof(xlct));
// clang-format off
- const CryptoHandshakeMessage client_hello = CryptoTestUtils::Message(
+ const CryptoHandshakeMessage client_hello = crypto_test_utils::Message(
"CHLO",
"PDMD", "X509",
"AEAD", "AESG",
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream_test.cc ('k') | net/url_request/url_request_quic_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698