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

Unified Diff: net/cert/multi_log_ct_verifier_unittest.cc

Issue 2537373002: Use different source types for each ConnectJob subclass. (Closed)
Patch Set: mmenke comment 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 | « chrome/test/data/webui/net_internals/log_view_painter.js ('k') | net/docs/crash-course-in-net-internals.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/multi_log_ct_verifier_unittest.cc
diff --git a/net/cert/multi_log_ct_verifier_unittest.cc b/net/cert/multi_log_ct_verifier_unittest.cc
index 2efd7012a46155c25617a32e3ab6f2357d627e89..3111b5e451e3f5716edef55b52686a589dfe9d0e 100644
--- a/net/cert/multi_log_ct_verifier_unittest.cc
+++ b/net/cert/multi_log_ct_verifier_unittest.cc
@@ -121,19 +121,15 @@ class MultiLogCTVerifierTest : public ::testing::Test {
bool VerifySinglePrecertificateChain(scoped_refptr<X509Certificate> chain) {
SignedCertificateTimestampAndStatusList scts;
- TestNetLog test_net_log;
- NetLogWithSource net_log =
- NetLogWithSource::Make(&test_net_log, NetLogSourceType::CONNECT_JOB);
-
return verifier_->Verify(chain.get(), std::string(), std::string(), &scts,
- net_log) == OK;
+ NetLogWithSource()) == OK;
}
bool CheckPrecertificateVerification(scoped_refptr<X509Certificate> chain) {
SignedCertificateTimestampAndStatusList scts;
TestNetLog test_net_log;
- NetLogWithSource net_log =
- NetLogWithSource::Make(&test_net_log, NetLogSourceType::CONNECT_JOB);
+ NetLogWithSource net_log = NetLogWithSource::Make(
+ &test_net_log, NetLogSourceType::SSL_CONNECT_JOB);
return (VerifySinglePrecertificateChain(chain, net_log, &scts) &&
ct::CheckForSingleVerifiedSCTInResult(scts, kLogDescription) &&
ct::CheckForSCTOrigin(
« no previous file with comments | « chrome/test/data/webui/net_internals/log_view_painter.js ('k') | net/docs/crash-course-in-net-internals.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698