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

Unified Diff: components/ssl_config/ssl_config_service_manager_pref_unittest.cc

Issue 2030833003: Remove ListValue::Append(new {Fundamental,String}Value(...)) pattern in //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: components/ssl_config/ssl_config_service_manager_pref_unittest.cc
diff --git a/components/ssl_config/ssl_config_service_manager_pref_unittest.cc b/components/ssl_config/ssl_config_service_manager_pref_unittest.cc
index ff5c2e1c325621ef38e01987d972e56f22f4d599..07aaef88f48dbed2b72f3e8318ce3ea3400e32f3 100644
--- a/components/ssl_config/ssl_config_service_manager_pref_unittest.cc
+++ b/components/ssl_config/ssl_config_service_manager_pref_unittest.cc
@@ -65,8 +65,8 @@ TEST_F(SSLConfigServiceManagerPrefTest, GoodDisabledCipherSuites) {
EXPECT_TRUE(old_config.disabled_cipher_suites.empty());
base::ListValue* list_value = new base::ListValue();
- list_value->Append(new base::StringValue("0x0004"));
- list_value->Append(new base::StringValue("0x0005"));
+ list_value->AppendString("0x0004");
+ list_value->AppendString("0x0005");
local_state.SetUserPref(ssl_config::prefs::kCipherSuiteBlacklist, list_value);
// Pump the message loop to notify the SSLConfigServiceManagerPref that the
@@ -101,10 +101,10 @@ TEST_F(SSLConfigServiceManagerPrefTest, BadDisabledCipherSuites) {
EXPECT_TRUE(old_config.disabled_cipher_suites.empty());
base::ListValue* list_value = new base::ListValue();
- list_value->Append(new base::StringValue("0x0004"));
- list_value->Append(new base::StringValue("TLS_NOT_WITH_A_CIPHER_SUITE"));
- list_value->Append(new base::StringValue("0x0005"));
- list_value->Append(new base::StringValue("0xBEEFY"));
+ list_value->AppendString("0x0004");
+ list_value->AppendString("TLS_NOT_WITH_A_CIPHER_SUITE");
+ list_value->AppendString("0x0005");
+ list_value->AppendString("0xBEEFY");
local_state.SetUserPref(ssl_config::prefs::kCipherSuiteBlacklist, list_value);
// Pump the message loop to notify the SSLConfigServiceManagerPref that the

Powered by Google App Engine
This is Rietveld 408576698