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

Unified Diff: ash/system/user/tray_user_unittest.cc

Issue 2911493002: cros: Pull user info from session_controller_client.mojom into separate mojom. (Closed)
Patch Set: Fix ordering in typemaps Created 3 years, 7 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 | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_card_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/tray_user_unittest.cc
diff --git a/ash/system/user/tray_user_unittest.cc b/ash/system/user/tray_user_unittest.cc
index 5ceda02d51f68d742b23a84a9a74e7a641b85f2f..82918c5366417dc38bb2f4b823fc35f8d5e646b6 100644
--- a/ash/system/user/tray_user_unittest.cc
+++ b/ash/system/user/tray_user_unittest.cc
@@ -257,10 +257,12 @@ TEST_F(TrayUserTest, MultiUserModeButtonClicks) {
RunAllPendingInMessageLoop();
const mojom::UserSession* active_user = controller()->GetUserSession(0);
- EXPECT_EQ(active_user->account_id, second_user->account_id);
+ EXPECT_EQ(active_user->user_info->account_id,
+ second_user->user_info->account_id);
// Since the name is capitalized, the email should be different than the
// user_id.
- EXPECT_NE(active_user->account_id.GetUserEmail(), second_user->display_email);
+ EXPECT_NE(active_user->user_info->account_id.GetUserEmail(),
+ second_user->user_info->display_email);
tray()->CloseSystemBubble();
}
@@ -275,7 +277,7 @@ TEST_F(TrayUserTest, AvatarChange) {
const gfx::ImageSkia red_icon =
CreateImageSkiaWithColor(kTrayItemSize, kTrayItemSize, SK_ColorRED);
mojom::UserSessionPtr user = controller()->GetUserSession(0)->Clone();
- user->avatar = red_icon;
+ user->user_info->avatar = red_icon;
controller()->UpdateUserSession(std::move(user));
EXPECT_TRUE(gfx::test::AreImagesEqual(
gfx::Image(red_icon),
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698