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

Unified Diff: ios/web/net/request_tracker_impl_unittest.mm

Issue 2084153003: Remove the test-only X509Certificate constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 | « extensions/extensions_unittests.isolate ('k') | net/cert/ct_policy_enforcer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/request_tracker_impl_unittest.mm
diff --git a/ios/web/net/request_tracker_impl_unittest.mm b/ios/web/net/request_tracker_impl_unittest.mm
index 4b67f91f315f1fd41865203fae9a72e139f8ff6b..753e2694bc578178e07bdce8d91c5f5643e80d13 100644
--- a/ios/web/net/request_tracker_impl_unittest.mm
+++ b/ios/web/net/request_tracker_impl_unittest.mm
@@ -488,11 +488,9 @@ void TwoStartsSSLCallback(bool* called, bool ok) {
// crbug/386180
TEST_F(RequestTrackerTest, DISABLED_TwoStartsNoEstimate) {
- net::X509Certificate* cert =
- new net::X509Certificate("subject", "issuer", base::Time::Now(),
- base::Time::Max());
net::SSLInfo ssl_info;
- ssl_info.cert = cert;
+ ssl_info.cert =
+ net::ImportCertFromFile(net::GetTestCertsDirectory(), "ok_cert.pem");
ssl_info.cert_status = net::CERT_STATUS_AUTHORITY_INVALID;
scoped_refptr<MockCertificatePolicyCache> cache;
tracker_->SetCertificatePolicyCacheForTest(cache.get());
« no previous file with comments | « extensions/extensions_unittests.isolate ('k') | net/cert/ct_policy_enforcer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698