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

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

Issue 59883010: This is the fourth CL of several that will eventually replace TokenService with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change LOG(INFO) to VLOG(1) Created 7 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/profiles/profile_list_desktop_unittest.cc
diff --git a/chrome/browser/profiles/profile_list_desktop_unittest.cc b/chrome/browser/profiles/profile_list_desktop_unittest.cc
index f1d923bcd01d5965e85068aaec56a80e1deb91d3..bbc1a9ded93885c678c23e095efb7ce67fd6c019 100644
--- a/chrome/browser/profiles/profile_list_desktop_unittest.cc
+++ b/chrome/browser/profiles/profile_list_desktop_unittest.cc
@@ -86,9 +86,11 @@ TEST_F(ProfileListDesktopTest, InitialCreation) {
string16 name2(ASCIIToUTF16("Test 2"));
manager()->CreateTestingProfile("p1", scoped_ptr<PrefServiceSyncable>(),
- name1, 0, std::string());
+ name1, 0, std::string(),
+ TestingProfile::TestingFactories());
manager()->CreateTestingProfile("p2", scoped_ptr<PrefServiceSyncable>(),
- name2, 0, std::string());
+ name2, 0, std::string(),
+ TestingProfile::TestingFactories());
AvatarMenu* model = GetAvatarMenu();
EXPECT_EQ(0, change_count());
@@ -109,9 +111,11 @@ TEST_F(ProfileListDesktopTest, ActiveItem) {
string16 name2(ASCIIToUTF16("Test 2"));
manager()->CreateTestingProfile("p1", scoped_ptr<PrefServiceSyncable>(),
- name1, 0, std::string());
+ name1, 0, std::string(),
+ TestingProfile::TestingFactories());
manager()->CreateTestingProfile("p2", scoped_ptr<PrefServiceSyncable>(),
- name2, 0, std::string());
+ name2, 0, std::string(),
+ TestingProfile::TestingFactories());
AvatarMenu* model = GetAvatarMenu();
ASSERT_EQ(2U, model->GetNumberOfItems());
@@ -126,9 +130,11 @@ TEST_F(ProfileListDesktopTest, ModifyingNameResortsCorrectly) {
string16 newname1(ASCIIToUTF16("Gamma"));
manager()->CreateTestingProfile("p1", scoped_ptr<PrefServiceSyncable>(),
- name1, 0, std::string());
+ name1, 0, std::string(),
+ TestingProfile::TestingFactories());
manager()->CreateTestingProfile("p2", scoped_ptr<PrefServiceSyncable>(),
- name2, 0, std::string());
+ name2, 0, std::string(),
+ TestingProfile::TestingFactories());
AvatarMenu* model = GetAvatarMenu();
EXPECT_EQ(0, change_count());
@@ -161,9 +167,11 @@ TEST_F(ProfileListDesktopTest, ChangeOnNotify) {
string16 name2(ASCIIToUTF16("Test 2"));
manager()->CreateTestingProfile("p1", scoped_ptr<PrefServiceSyncable>(),
- name1, 0, std::string());
+ name1, 0, std::string(),
+ TestingProfile::TestingFactories());
manager()->CreateTestingProfile("p2", scoped_ptr<PrefServiceSyncable>(),
- name2, 0, std::string());
+ name2, 0, std::string(),
+ TestingProfile::TestingFactories());
AvatarMenu* model = GetAvatarMenu();
EXPECT_EQ(0, change_count());
@@ -171,7 +179,8 @@ TEST_F(ProfileListDesktopTest, ChangeOnNotify) {
string16 name3(ASCIIToUTF16("Test 3"));
manager()->CreateTestingProfile("p3", scoped_ptr<PrefServiceSyncable>(),
- name3, 0, std::string());
+ name3, 0, std::string(),
+ TestingProfile::TestingFactories());
// Four changes happened via the call to CreateTestingProfile: adding the
// profile to the cache, setting the user name, rebuilding the list of
@@ -215,7 +224,8 @@ TEST_F(ProfileListDesktopTest, ShowAvatarMenuInTrial) {
TEST_F(ProfileListDesktopTest, DontShowAvatarMenu) {
string16 name1(ASCIIToUTF16("Test 1"));
manager()->CreateTestingProfile("p1", scoped_ptr<PrefServiceSyncable>(),
- name1, 0, std::string());
+ name1, 0, std::string(),
+ TestingProfile::TestingFactories());
EXPECT_FALSE(AvatarMenu::ShouldShowAvatarMenu());
@@ -226,7 +236,8 @@ TEST_F(ProfileListDesktopTest, DontShowAvatarMenu) {
string16 name2(ASCIIToUTF16("Test 2"));
manager()->CreateTestingProfile("p2", scoped_ptr<PrefServiceSyncable>(),
- name2, 0, std::string());
+ name2, 0, std::string(),
+ TestingProfile::TestingFactories());
EXPECT_FALSE(AvatarMenu::ShouldShowAvatarMenu());
}
@@ -240,9 +251,11 @@ TEST_F(ProfileListDesktopTest, ShowAvatarMenu) {
string16 name2(ASCIIToUTF16("Test 2"));
manager()->CreateTestingProfile("p1", scoped_ptr<PrefServiceSyncable>(),
- name1, 0, std::string());
+ name1, 0, std::string(),
+ TestingProfile::TestingFactories());
manager()->CreateTestingProfile("p2", scoped_ptr<PrefServiceSyncable>(),
- name2, 0, std::string());
+ name2, 0, std::string(),
+ TestingProfile::TestingFactories());
#if defined(OS_CHROMEOS)
EXPECT_FALSE(AvatarMenu::ShouldShowAvatarMenu());
@@ -257,7 +270,8 @@ TEST_F(ProfileListDesktopTest, SyncState) {
return;
manager()->CreateTestingProfile("p1", scoped_ptr<PrefServiceSyncable>(),
- ASCIIToUTF16("Test 1"), 0, std::string());
+ ASCIIToUTF16("Test 1"), 0, std::string(),
+ TestingProfile::TestingFactories());
// Add a managed user profile.
ProfileInfoCache* cache = manager()->profile_info_cache();

Powered by Google App Engine
This is Rietveld 408576698