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/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
8 #include "ash/shelf/shelf_layout_manager.h" | 8 #include "ash/shelf/shelf_layout_manager.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
22 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
25 | 25 |
26 class TrayUserTest : public ash::test::AshTestBase { | 26 class TrayUserTest : public ash::test::AshTestBase { |
27 public: | 27 public: |
28 TrayUserTest(); | 28 TrayUserTest(); |
29 | 29 |
30 // testing::Test: | 30 // testing::Test: |
31 virtual void SetUp() OVERRIDE; | 31 virtual void SetUp() override; |
32 | 32 |
33 // This has to be called prior to first use with the proper configuration. | 33 // This has to be called prior to first use with the proper configuration. |
34 void InitializeParameters(int users_logged_in, bool multiprofile); | 34 void InitializeParameters(int users_logged_in, bool multiprofile); |
35 | 35 |
36 // Show the system tray menu using the provided event generator. | 36 // Show the system tray menu using the provided event generator. |
37 void ShowTrayMenu(ui::test::EventGenerator* generator); | 37 void ShowTrayMenu(ui::test::EventGenerator* generator); |
38 | 38 |
39 // Move the mouse over the user item. | 39 // Move the mouse over the user item. |
40 void MoveOverUserItem(ui::test::EventGenerator* generator, int index); | 40 void MoveOverUserItem(ui::test::EventGenerator* generator, int index); |
41 | 41 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 EXPECT_EQ(active_user->GetUserID(), second_user->GetUserID()); | 242 EXPECT_EQ(active_user->GetUserID(), second_user->GetUserID()); |
243 // Since the name is capitalized, the email should be different then the | 243 // Since the name is capitalized, the email should be different then the |
244 // user_id. | 244 // user_id. |
245 EXPECT_NE(active_user->GetUserID(), second_user->GetEmail()); | 245 EXPECT_NE(active_user->GetUserID(), second_user->GetEmail()); |
246 tray()->CloseSystemBubble(); | 246 tray()->CloseSystemBubble(); |
247 } | 247 } |
248 | 248 |
249 #endif | 249 #endif |
250 | 250 |
251 } // namespace ash | 251 } // namespace ash |
OLD | NEW |