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 9b808ac57e19285d5b5ed0cf5be95640a060912d..03223c60dc051fe0a5da49f1f48c4498641cba7d 100644 |
--- a/chrome/browser/profiles/profile_info_cache_unittest.cc |
+++ b/chrome/browser/profiles/profile_info_cache_unittest.cc |
@@ -546,6 +546,7 @@ TEST_F(ProfileInfoCacheTest, DownloadHighResAvatarTest) { |
GetCache()->AddProfileToCache(path_1, ASCIIToUTF16("name_1"), |
base::string16(), 0, std::string()); |
EXPECT_EQ(1U, GetCache()->GetNumberOfProfiles()); |
+ base::RunLoop().RunUntilIdle(); |
// We haven't downloaded any high-res avatars yet. |
EXPECT_EQ(0U, GetCache()->cached_avatar_images_.size()); |
@@ -676,4 +677,3 @@ TEST_F(ProfileInfoCacheTest, |
EXPECT_EQ(name_4, GetCache()->GetNameOfProfileAtIndex( |
GetCache()->GetIndexOfProfileWithPath(path_4))); |
} |
- |