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

Unified Diff: components/security_state/security_state_model_unittest.cc

Issue 2344043003: Rename HTTP bad-related flags to be more clear (Closed)
Patch Set: sfijdf Created 4 years, 3 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 | « components/security_state/security_state_model.cc ('k') | components/security_state/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/security_state/security_state_model_unittest.cc
diff --git a/components/security_state/security_state_model_unittest.cc b/components/security_state/security_state_model_unittest.cc
index a254ead20c31e06b249481e0310a2336ce73c04a..73e275f483d0674a9501be44359dbb718190718d 100644
--- a/components/security_state/security_state_model_unittest.cc
+++ b/components/security_state/security_state_model_unittest.cc
@@ -254,8 +254,8 @@ TEST(SecurityStateModelTest, MalwareWithoutCOnnectionState) {
// to HTTP_SHOW_WARNING when the command-line switch is set.
TEST(SecurityStateModelTest, PasswordFieldWarning) {
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kMarkNonSecureAs,
- switches::kMarkNonSecureWithPasswordsOrCcAsNonSecure);
+ switches::kMarkHttpAs,
+ switches::kMarkHttpWithPasswordsOrCcWithChip);
TestSecurityStateModelClient client;
client.UseHttpUrl();
client.set_initial_security_level(SecurityStateModel::NONE);
@@ -272,8 +272,8 @@ TEST(SecurityStateModelTest, PasswordFieldWarning) {
// to HTTP_SHOW_WARNING when the command-line switch is set.
TEST(SecurityStateModelTest, CreditCardFieldWarning) {
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kMarkNonSecureAs,
- switches::kMarkNonSecureWithPasswordsOrCcAsNonSecure);
+ switches::kMarkHttpAs,
+ switches::kMarkHttpWithPasswordsOrCcWithChip);
TestSecurityStateModelClient client;
client.UseHttpUrl();
client.set_initial_security_level(SecurityStateModel::NONE);
« no previous file with comments | « components/security_state/security_state_model.cc ('k') | components/security_state/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698