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

Unified Diff: chrome/browser/io_thread_unittest.cc

Issue 2753123002: Add --ignore-certificate-errors-spki-list switch and UMA histogram. (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
Index: chrome/browser/io_thread_unittest.cc
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc
index 352d037b4cb9cd90cda2156008ac01088131441a..e20270f13ccc24bbec0a56b94a9073a3f5dd2aaf 100644
--- a/chrome/browser/io_thread_unittest.cc
+++ b/chrome/browser/io_thread_unittest.cc
@@ -457,6 +457,22 @@ TEST_F(ConfigureParamsFromFieldTrialsAndCommandLineTest,
EXPECT_TRUE(params_.ignore_certificate_errors);
}
+TEST_F(ConfigureParamsFromFieldTrialsAndCommandLineTest,
+ DisableCertificateErrorsSPKIList) {
+ command_line_.AppendSwitchASCII(
+ "disable-certificate-errors-spki-list",
+ "foo,BZef6CjpE0HUDfp5ra3F3soQ9kkFxZoBo5PiK1hpudI=");
+
+ ConfigureParamsFromFieldTrialsAndCommandLine();
+
+ EXPECT_EQ(2u, params_.ignore_certificate_error_spki_list.size());
+ EXPECT_TRUE(
+ base::ContainsKey(params_.ignore_certificate_error_spki_list, "foo"));
+ EXPECT_TRUE(
+ base::ContainsKey(params_.ignore_certificate_error_spki_list,
+ "BZef6CjpE0HUDfp5ra3F3soQ9kkFxZoBo5PiK1hpudI="));
+}
+
TEST_F(ConfigureParamsFromFieldTrialsAndCommandLineTest, TestingFixedPort) {
command_line_.AppendSwitchASCII("testing-fixed-http-port", "42");
command_line_.AppendSwitchASCII("testing-fixed-https-port", "137");

Powered by Google App Engine
This is Rietveld 408576698