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

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

Issue 476993002: [Profiles] Fix the usage of custom/default names and avatars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: all rebase all the time Created 6 years, 4 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 | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/gaia_info_update_service_unittest.cc
diff --git a/chrome/browser/profiles/gaia_info_update_service_unittest.cc b/chrome/browser/profiles/gaia_info_update_service_unittest.cc
index ce2f601ab0a020a1eac6a5fd93cc87914ab67556..a5b78c08c9a3635062d1d78dd87468279eeb8c52 100644
--- a/chrome/browser/profiles/gaia_info_update_service_unittest.cc
+++ b/chrome/browser/profiles/gaia_info_update_service_unittest.cc
@@ -110,7 +110,7 @@ class GAIAInfoUpdateServiceTest : public ProfileInfoCacheTest {
void RenameProfile(const base::string16& full_name,
const base::string16& given_name) {
- gfx::Image image = gfx::test::CreateImage();
+ gfx::Image image = gfx::test::CreateImage(256,256);
std::string url("foo.com");
ProfileDownloadSuccess(full_name, given_name, image, url);
@@ -150,7 +150,7 @@ TEST_F(GAIAInfoUpdateServiceTest, DownloadSuccess) {
base::string16 name = base::ASCIIToUTF16("Pat Smith");
base::string16 given_name = base::ASCIIToUTF16("Pat");
- gfx::Image image = gfx::test::CreateImage();
+ gfx::Image image = gfx::test::CreateImage(256, 256);
std::string url("foo.com");
ProfileDownloadSuccess(name, given_name, image, url);
@@ -247,7 +247,7 @@ TEST_F(GAIAInfoUpdateServiceTest, LogOut) {
signin_manager->SetAuthenticatedUsername("pat@example.com");
base::string16 gaia_name = base::UTF8ToUTF16("Pat Foo");
GetCache()->SetGAIANameOfProfileAtIndex(0, gaia_name);
- gfx::Image gaia_picture = gfx::test::CreateImage();
+ gfx::Image gaia_picture = gfx::test::CreateImage(256,256);
GetCache()->SetGAIAPictureOfProfileAtIndex(0, &gaia_picture);
// Set a fake picture URL.
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698