OLD | NEW |
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/test/test_session_state_delegate.h" | |
9 #include "ash/common/wm_shell.h" | |
10 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
11 #include "ash/system/tray/tray_constants.h" | 9 #include "ash/system/tray/tray_constants.h" |
12 #include "ash/system/user/tray_user.h" | 10 #include "ash/system/user/tray_user.h" |
13 #include "ash/system/user/user_view.h" | 11 #include "ash/system/user/user_view.h" |
14 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
15 #include "ash/test/ash_test_helper.h" | 13 #include "ash/test/ash_test_helper.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 Loading... |
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 |
OLD | NEW |