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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 1422293002: Remove RC4 by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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/ssl/ssl_config.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 59e885f60a63a4da8dc8e7d6f67c71cef73d6248..e782b886b48b670ccd0f2becacd42032e01fa061 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -7864,45 +7864,6 @@ TEST_F(HTTPSRequestTest, HTTPSExpiredTest) {
}
}
-// Tests that servers which require a deprecated cipher suite still work.
-TEST_F(HTTPSRequestTest, CipherFallbackTest) {
- TestNetLog net_log;
- default_context_.set_net_log(&net_log);
-
- SpawnedTestServer::SSLOptions ssl_options;
- ssl_options.bulk_ciphers = SpawnedTestServer::SSLOptions::BULK_CIPHER_RC4;
- SpawnedTestServer test_server(
- SpawnedTestServer::TYPE_HTTPS, ssl_options,
- base::FilePath(FILE_PATH_LITERAL("net/data/ssl")));
- ASSERT_TRUE(test_server.Start());
-
- TestDelegate d;
- scoped_ptr<URLRequest> r(default_context_.CreateRequest(
- test_server.GetURL(std::string()), DEFAULT_PRIORITY, &d));
- r->Start();
- EXPECT_TRUE(r->is_pending());
-
- base::RunLoop().Run();
-
- EXPECT_EQ(1, d.response_started_count());
- EXPECT_FALSE(d.received_data_before_response());
- EXPECT_NE(0, d.bytes_received());
- CheckSSLInfo(r->ssl_info());
- EXPECT_EQ(test_server.host_port_pair().host(), r->GetSocketAddress().host());
- EXPECT_EQ(test_server.host_port_pair().port(), r->GetSocketAddress().port());
-
- // No version downgrade should have been necessary.
- EXPECT_FALSE(r->ssl_info().connection_status &
- SSL_CONNECTION_VERSION_FALLBACK);
- EXPECT_EQ(SSL_CONNECTION_VERSION_TLS1_2,
- SSLConnectionStatusToVersion(r->ssl_info().connection_status));
-
- TestNetLogEntry::List entries;
- net_log.GetEntries(&entries);
- ExpectLogContainsSomewhere(entries, 0, NetLog::TYPE_SSL_CIPHER_FALLBACK,
- NetLog::PHASE_NONE);
-}
-
// This tests that a load of www.google.com with a certificate error sets
// the |certificate_errors_are_fatal| flag correctly. This flag will cause
// the interstitial to be fatal.
« no previous file with comments | « net/ssl/ssl_config.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698