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

Side by Side Diff: ash/system/user/tray_user_unittest.cc

Issue 2729363002: chromeos: Move files in //ash/common to //ash, part 3 (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_card_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "ash/common/shell_delegate.h" 7 #include "ash/shell_delegate.h"
8 #include "ash/common/wm_shell.h"
9 #include "ash/system/tray/system_tray.h" 8 #include "ash/system/tray/system_tray.h"
10 #include "ash/system/tray/tray_constants.h" 9 #include "ash/system/tray/tray_constants.h"
11 #include "ash/system/user/tray_user.h" 10 #include "ash/system/user/tray_user.h"
12 #include "ash/system/user/user_view.h" 11 #include "ash/system/user/user_view.h"
13 #include "ash/test/ash_test_base.h" 12 #include "ash/test/ash_test_base.h"
14 #include "ash/test/ash_test_helper.h" 13 #include "ash/test/ash_test_helper.h"
15 #include "ash/test/test_session_state_delegate.h" 14 #include "ash/test/test_session_state_delegate.h"
16 #include "ash/test/test_shell_delegate.h" 15 #include "ash/test/test_shell_delegate.h"
16 #include "ash/wm_shell.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "components/signin/core/account_id/account_id.h" 19 #include "components/signin/core/account_id/account_id.h"
20 #include "components/user_manager/user_info.h" 20 #include "components/user_manager/user_info.h"
21 #include "ui/accessibility/ax_node_data.h" 21 #include "ui/accessibility/ax_node_data.h"
22 #include "ui/events/test/event_generator.h" 22 #include "ui/events/test/event_generator.h"
23 #include "ui/gfx/animation/animation_container_element.h" 23 #include "ui/gfx/animation/animation_container_element.h"
24 #include "ui/views/view.h" 24 #include "ui/views/view.h"
25 #include "ui/views/widget/widget.h" 25 #include "ui/views/widget/widget.h"
26 26
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const user_manager::UserInfo* second_user = delegate()->GetUserInfo(1); 245 const user_manager::UserInfo* second_user = delegate()->GetUserInfo(1);
246 EXPECT_EQ(active_user->GetAccountId(), second_user->GetAccountId()); 246 EXPECT_EQ(active_user->GetAccountId(), second_user->GetAccountId());
247 // Since the name is capitalized, the email should be different than the 247 // Since the name is capitalized, the email should be different than the
248 // user_id. 248 // user_id.
249 EXPECT_NE(active_user->GetAccountId().GetUserEmail(), 249 EXPECT_NE(active_user->GetAccountId().GetUserEmail(),
250 second_user->GetDisplayEmail()); 250 second_user->GetDisplayEmail());
251 tray()->CloseSystemBubble(); 251 tray()->CloseSystemBubble();
252 } 252 }
253 253
254 } // namespace ash 254 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_card_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698