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

Unified Diff: net/quic/chromium/crypto/proof_test_chromium.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
Index: net/quic/chromium/crypto/proof_test_chromium.cc
diff --git a/net/quic/chromium/crypto/proof_test_chromium.cc b/net/quic/chromium/crypto/proof_test_chromium.cc
index 023a4332511f55ec062306dbc1e73a2e18e306e5..b7e4b8bd208db1b35a0621f089d1a72964467954 100644
--- a/net/quic/chromium/crypto/proof_test_chromium.cc
+++ b/net/quic/chromium/crypto/proof_test_chromium.cc
@@ -65,7 +65,7 @@ void RunVerification(ProofVerifier* verifier,
bool ok;
string error_details;
std::unique_ptr<ProofVerifyContext> verify_context(
- CryptoTestUtils::ProofVerifyContextForTesting());
+ crypto_test_utils::ProofVerifyContextForTesting());
std::unique_ptr<TestProofVerifierCallback> callback(
new TestProofVerifierCallback(&comp_callback, &ok, &error_details));
@@ -124,9 +124,10 @@ INSTANTIATE_TEST_CASE_P(QuicVersion,
// TODO(rtenneti): Enable testing of ProofVerifier. See http://crbug.com/514468.
TEST_P(ProofTest, DISABLED_Verify) {
- std::unique_ptr<ProofSource> source(CryptoTestUtils::ProofSourceForTesting());
+ std::unique_ptr<ProofSource> source(
+ crypto_test_utils::ProofSourceForTesting());
std::unique_ptr<ProofVerifier> verifier(
- CryptoTestUtils::ProofVerifierForTesting());
+ crypto_test_utils::ProofVerifierForTesting());
const string server_config = "server config bytes";
const string hostname = "test.example.com";
@@ -177,7 +178,8 @@ TEST_P(ProofTest, DISABLED_Verify) {
}
TEST_P(ProofTest, VerifySourceAsync) {
- std::unique_ptr<ProofSource> source(CryptoTestUtils::ProofSourceForTesting());
+ std::unique_ptr<ProofSource> source(
+ crypto_test_utils::ProofSourceForTesting());
const string server_config = "server config bytes";
const string hostname = "test.example.com";
@@ -211,7 +213,8 @@ TEST_P(ProofTest, VerifySourceAsync) {
}
TEST_P(ProofTest, UseAfterFree) {
- std::unique_ptr<ProofSource> source(CryptoTestUtils::ProofSourceForTesting());
+ std::unique_ptr<ProofSource> source(
+ crypto_test_utils::ProofSourceForTesting());
const string server_config = "server config bytes";
const string hostname = "test.example.com";
« no previous file with comments | « net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc ('k') | net/quic/chromium/crypto_test_utils_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698