summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/gaia_info_update_service_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profiles/gaia_info_update_service_unittest.cc')
-rw-r--r--chrome/browser/profiles/gaia_info_update_service_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/profiles/gaia_info_update_service_unittest.cc b/chrome/browser/profiles/gaia_info_update_service_unittest.cc
index dd85970..37dfdd7 100644
--- a/chrome/browser/profiles/gaia_info_update_service_unittest.cc
+++ b/chrome/browser/profiles/gaia_info_update_service_unittest.cc
@@ -184,7 +184,8 @@ TEST_F(GAIAInfoUpdateServiceTest, LogOut) {
GAIAInfoUpdateService service(profile());
EXPECT_FALSE(service.GetCachedPictureURL().empty());
// Log out.
- profile()->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "");
+ profile()->GetPrefs()
+ ->SetString(prefs::kGoogleServicesUsername, std::string());
// Verify that the GAIA name and picture, and picture URL are unset.
EXPECT_TRUE(GetCache()->GetGAIANameOfProfileAtIndex(0).empty());
@@ -193,7 +194,8 @@ TEST_F(GAIAInfoUpdateServiceTest, LogOut) {
}
TEST_F(GAIAInfoUpdateServiceTest, LogIn) {
- profile()->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "");
+ profile()->GetPrefs()
+ ->SetString(prefs::kGoogleServicesUsername, std::string());
GAIAInfoUpdateServiceMock service(profile());
// Log in.