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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client_unittest.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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/password_manager/chrome_password_manager_client_unittest.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc b/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
index df6f06ed08b0eb742120af71e2f282b941af3c46..5c8902d518adffbba75a36f2edab53c2f600b7dd 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
@@ -320,10 +320,10 @@ TEST_F(ChromePasswordManagerClientTest,
// preference.
ChromePasswordManagerClient* client = GetClient();
prefs()->SetUserPref(password_manager::prefs::kPasswordManagerSavingEnabled,
- new base::FundamentalValue(true));
+ new base::Value(true));
EXPECT_TRUE(client->IsSavingAndFillingEnabledForCurrentPage());
prefs()->SetUserPref(password_manager::prefs::kPasswordManagerSavingEnabled,
- new base::FundamentalValue(false));
+ new base::Value(false));
EXPECT_FALSE(client->IsSavingAndFillingEnabledForCurrentPage());
}
@@ -342,7 +342,7 @@ TEST_F(ChromePasswordManagerClientTest, SavingAndFillingEnabledConditionsTest) {
// Functionality disabled if there are SSL errors and the manager itself is
// disabled.
prefs()->SetUserPref(password_manager::prefs::kPasswordManagerSavingEnabled,
- new base::FundamentalValue(false));
+ new base::Value(false));
EXPECT_FALSE(client->IsSavingAndFillingEnabledForCurrentPage());
EXPECT_FALSE(client->IsFillingEnabledForCurrentPage());
@@ -351,7 +351,7 @@ TEST_F(ChromePasswordManagerClientTest, SavingAndFillingEnabledConditionsTest) {
EXPECT_CALL(*client, DidLastPageLoadEncounterSSLErrors())
.WillRepeatedly(Return(false));
prefs()->SetUserPref(password_manager::prefs::kPasswordManagerSavingEnabled,
- new base::FundamentalValue(false));
+ new base::Value(false));
EXPECT_FALSE(client->IsSavingAndFillingEnabledForCurrentPage());
EXPECT_TRUE(client->IsFillingEnabledForCurrentPage());
@@ -360,7 +360,7 @@ TEST_F(ChromePasswordManagerClientTest, SavingAndFillingEnabledConditionsTest) {
EXPECT_CALL(*client, DidLastPageLoadEncounterSSLErrors())
.WillRepeatedly(Return(false));
prefs()->SetUserPref(password_manager::prefs::kPasswordManagerSavingEnabled,
- new base::FundamentalValue(true));
+ new base::Value(true));
EXPECT_TRUE(client->IsSavingAndFillingEnabledForCurrentPage());
EXPECT_TRUE(client->IsFillingEnabledForCurrentPage());
@@ -372,7 +372,7 @@ TEST_F(ChromePasswordManagerClientTest, SavingAndFillingEnabledConditionsTest) {
// Functionality disabled in Incognito mode also when manager itself is
// enabled.
prefs()->SetUserPref(password_manager::prefs::kPasswordManagerSavingEnabled,
- new base::FundamentalValue(true));
+ new base::Value(true));
EXPECT_FALSE(client->IsSavingAndFillingEnabledForCurrentPage());
EXPECT_TRUE(client->IsFillingEnabledForCurrentPage());
profile()->ForceIncognito(false);
« no previous file with comments | « chrome/browser/net/errorpage_browsertest.cc ('k') | chrome/browser/plugins/chrome_plugin_service_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698