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

Unified Diff: chrome/browser/profiles/profile_info_cache_unittest.cc

Issue 8226002: Multi-Profiles: Initialize sync user name when adding profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_info_cache_unittest.cc
diff --git a/chrome/browser/profiles/profile_info_cache_unittest.cc b/chrome/browser/profiles/profile_info_cache_unittest.cc
index 76735b9b18427a5e5e02c6a36dc42d04b486131b..5fea20f91f71d441089d004cb189d03d48c1c629 100644
--- a/chrome/browser/profiles/profile_info_cache_unittest.cc
+++ b/chrome/browser/profiles/profile_info_cache_unittest.cc
@@ -60,7 +60,7 @@ TEST_F(ProfileInfoCacheUnittests, AddProfiles) {
const SkBitmap& icon = ResourceBundle::GetSharedInstance().GetImageNamed(
ProfileInfoCache::GetDefaultAvatarIconResourceIDAtIndex(i));
- GetCache()->AddProfileToCache(profile_path, profile_name, 0);
+ GetCache()->AddProfileToCache(profile_path, profile_name, string16(), 0);
EXPECT_EQ(i + 1, GetCache()->GetNumberOfProfiles());
EXPECT_EQ(profile_name, GetCache()->GetNameOfProfileAtIndex(i));
@@ -75,13 +75,13 @@ TEST_F(ProfileInfoCacheUnittests, DeleteProfile) {
EXPECT_EQ(0u, GetCache()->GetNumberOfProfiles());
FilePath path_1 = GetUserDataDir().Append(StringToFilePath("path_1"));
- GetCache()->AddProfileToCache(path_1, ASCIIToUTF16("name_1"),
+ GetCache()->AddProfileToCache(path_1, ASCIIToUTF16("name_1"), string16(),
0);
EXPECT_EQ(1u, GetCache()->GetNumberOfProfiles());
FilePath path_2 = GetUserDataDir().Append(StringToFilePath("path_2"));
string16 name_2 = ASCIIToUTF16("name_2");
- GetCache()->AddProfileToCache(path_2, name_2, 0);
+ GetCache()->AddProfileToCache(path_2, name_2, string16(), 0);
EXPECT_EQ(2u, GetCache()->GetNumberOfProfiles());
GetCache()->DeleteProfileFromCache(path_1);
@@ -94,9 +94,9 @@ TEST_F(ProfileInfoCacheUnittests, DeleteProfile) {
TEST_F(ProfileInfoCacheUnittests, MutateProfile) {
GetCache()->AddProfileToCache(GetUserDataDir().Append(
- StringToFilePath("path_1")), ASCIIToUTF16("name_1"), 0);
+ StringToFilePath("path_1")), ASCIIToUTF16("name_1"), string16(), 0);
GetCache()->AddProfileToCache(GetUserDataDir().Append(
- StringToFilePath("path_2")), ASCIIToUTF16("name_2"), 0);
+ StringToFilePath("path_2")), ASCIIToUTF16("name_2"), string16(), 0);
string16 new_name = ASCIIToUTF16("new_name");
GetCache()->SetNameOfProfileAtIndex(1, new_name);
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698