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

Unified Diff: net/ssl/ssl_config_service_unittest.cc

Issue 2735733003: Disable commonName matching for certificates (Closed)
Patch Set: Created 3 years, 9 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_service.cc ('k') | net/tools/testserver/minica.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_config_service_unittest.cc
diff --git a/net/ssl/ssl_config_service_unittest.cc b/net/ssl/ssl_config_service_unittest.cc
index 72041ff2412858d4cbee0e0aa868314ce17fe20d..a4d4f9f6a7b217ef64479108813d74e21267aa39 100644
--- a/net/ssl/ssl_config_service_unittest.cc
+++ b/net/ssl/ssl_config_service_unittest.cc
@@ -67,6 +67,7 @@ TEST(SSLConfigServiceTest, ConfigUpdatesNotifyObservers) {
initial_config.rev_checking_enabled = true;
initial_config.rev_checking_required_local_anchors = false;
initial_config.sha1_local_anchors_enabled = true;
+ initial_config.common_name_fallback_local_anchors_enabled = true;
initial_config.false_start_enabled = false;
initial_config.require_ecdhe = false;
initial_config.version_min = SSL_PROTOCOL_VERSION_TLS1;
@@ -90,6 +91,10 @@ TEST(SSLConfigServiceTest, ConfigUpdatesNotifyObservers) {
EXPECT_CALL(observer, OnSSLConfigChanged()).Times(1);
mock_service->SetSSLConfig(initial_config);
+ initial_config.common_name_fallback_local_anchors_enabled = false;
+ EXPECT_CALL(observer, OnSSLConfigChanged()).Times(1);
+ mock_service->SetSSLConfig(initial_config);
+
initial_config.false_start_enabled = true;
EXPECT_CALL(observer, OnSSLConfigChanged()).Times(1);
mock_service->SetSSLConfig(initial_config);
« no previous file with comments | « net/ssl/ssl_config_service.cc ('k') | net/tools/testserver/minica.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698