OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/common/wm/overview/window_selector_controller.h" | |
6 #include "ash/common/wm_shell.h" | |
7 #include "ash/system/screen_security/screen_tray_item.h" | 5 #include "ash/system/screen_security/screen_tray_item.h" |
8 #include "ash/system/tray/system_tray.h" | 6 #include "ash/system/tray/system_tray.h" |
9 #include "ash/test/ash_test_base.h" | 7 #include "ash/test/ash_test_base.h" |
| 8 #include "ash/wm/overview/window_selector_controller.h" |
| 9 #include "ash/wm_shell.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "chrome/browser/ui/ash/multi_user/user_switch_util.h" | 12 #include "chrome/browser/ui/ash/multi_user/user_switch_util.h" |
13 #include "chrome/browser/ui/simple_message_box.h" | 13 #include "chrome/browser/ui/simple_message_box.h" |
14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 | 17 |
18 class TrySwitchingUserTest : public ash::test::AshTestBase { | 18 class TrySwitchingUserTest : public ash::test::AshTestBase { |
19 public: | 19 public: |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 gfx::Rect bounds(0, 0, 100, 100); | 245 gfx::Rect bounds(0, 0, 100, 100); |
246 std::unique_ptr<aura::Window> w(CreateTestWindowInShellWithBounds(bounds)); | 246 std::unique_ptr<aura::Window> w(CreateTestWindowInShellWithBounds(bounds)); |
247 ASSERT_TRUE(ToggleOverview()); | 247 ASSERT_TRUE(ToggleOverview()); |
248 ASSERT_TRUE(IsSelecting()); | 248 ASSERT_TRUE(IsSelecting()); |
249 SwitchUser(TrySwitchingUserTest::NO_DIALOG); | 249 SwitchUser(TrySwitchingUserTest::NO_DIALOG); |
250 ASSERT_FALSE(IsSelecting()); | 250 ASSERT_FALSE(IsSelecting()); |
251 EXPECT_EQ(1, switch_callback_hit_count()); | 251 EXPECT_EQ(1, switch_callback_hit_count()); |
252 } | 252 } |
253 | 253 |
254 } // namespace ash | 254 } // namespace ash |
OLD | NEW |