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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "ash/common/shelf/shelf_widget.h" | |
8 #include "ash/common/shelf/wm_shelf.h" | |
9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | |
10 #include "ash/common/wm/maximize_mode/maximize_mode_window_manager.h" | |
11 #include "ash/common/wm/mru_window_tracker.h" | |
12 #include "ash/common/wm/window_state.h" | |
13 #include "ash/common/wm/wm_event.h" | |
14 #include "ash/common/wm_shell.h" | |
15 #include "ash/common/wm_window.h" | |
16 #include "ash/content/shell_content_state.h" | 7 #include "ash/content/shell_content_state.h" |
17 #include "ash/public/cpp/shell_window_ids.h" | 8 #include "ash/public/cpp/shell_window_ids.h" |
| 9 #include "ash/shelf/shelf_widget.h" |
| 10 #include "ash/shelf/wm_shelf.h" |
18 #include "ash/shell.h" | 11 #include "ash/shell.h" |
19 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
20 #include "ash/test/ash_test_environment_content.h" | 13 #include "ash/test/ash_test_environment_content.h" |
21 #include "ash/test/ash_test_helper.h" | 14 #include "ash/test/ash_test_helper.h" |
22 #include "ash/test/test_shell_delegate.h" | 15 #include "ash/test/test_shell_delegate.h" |
| 16 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 17 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" |
| 18 #include "ash/wm/mru_window_tracker.h" |
| 19 #include "ash/wm/window_state.h" |
23 #include "ash/wm/window_state_aura.h" | 20 #include "ash/wm/window_state_aura.h" |
24 #include "ash/wm/window_util.h" | 21 #include "ash/wm/window_util.h" |
| 22 #include "ash/wm/wm_event.h" |
| 23 #include "ash/wm_shell.h" |
| 24 #include "ash/wm_window.h" |
25 #include "base/compiler_specific.h" | 25 #include "base/compiler_specific.h" |
26 #include "base/logging.h" | 26 #include "base/logging.h" |
27 #include "base/macros.h" | 27 #include "base/macros.h" |
28 #include "base/run_loop.h" | 28 #include "base/run_loop.h" |
29 #include "base/strings/string_util.h" | 29 #include "base/strings/string_util.h" |
30 #include "base/time/time.h" | 30 #include "base/time/time.h" |
31 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 31 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
32 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 32 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
33 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 33 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
34 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 34 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1579 user_manager()->SwitchActiveUser(account_id_B); | 1579 user_manager()->SwitchActiveUser(account_id_B); |
1580 multi_user_window_manager()->ActiveUserChanged( | 1580 multi_user_window_manager()->ActiveUserChanged( |
1581 user_manager()->FindUser(account_id_B)); | 1581 user_manager()->FindUser(account_id_B)); |
1582 EXPECT_EQ(browser.get(), BrowserList::GetInstance()->GetLastActive()); | 1582 EXPECT_EQ(browser.get(), BrowserList::GetInstance()->GetLastActive()); |
1583 EXPECT_EQ(nullptr, wm::GetActiveWindow()); | 1583 EXPECT_EQ(nullptr, wm::GetActiveWindow()); |
1584 EXPECT_EQ(nullptr, ChromeNewWindowClient::GetActiveBrowser()); | 1584 EXPECT_EQ(nullptr, ChromeNewWindowClient::GetActiveBrowser()); |
1585 } | 1585 } |
1586 | 1586 |
1587 } // namespace test | 1587 } // namespace test |
1588 } // namespace ash | 1588 } // namespace ash |
OLD | NEW |