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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc

Issue 2734733002: Revert "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
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "ash/common/wm_shell.h"
8 #include "ash/common/wm_window.h"
7 #include "ash/content/shell_content_state.h" 9 #include "ash/content/shell_content_state.h"
8 #include "ash/public/cpp/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
9 #include "ash/shelf/shelf_widget.h" 11 #include "ash/shelf/shelf_widget.h"
10 #include "ash/shelf/wm_shelf.h" 12 #include "ash/shelf/wm_shelf.h"
11 #include "ash/shell.h" 13 #include "ash/shell.h"
12 #include "ash/test/ash_test_base.h" 14 #include "ash/test/ash_test_base.h"
13 #include "ash/test/ash_test_environment_content.h" 15 #include "ash/test/ash_test_environment_content.h"
14 #include "ash/test/ash_test_helper.h" 16 #include "ash/test/ash_test_helper.h"
15 #include "ash/test/test_shell_delegate.h" 17 #include "ash/test/test_shell_delegate.h"
16 #include "ash/wm/maximize_mode/maximize_mode_controller.h" 18 #include "ash/wm/maximize_mode/maximize_mode_controller.h"
17 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" 19 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h"
18 #include "ash/wm/mru_window_tracker.h" 20 #include "ash/wm/mru_window_tracker.h"
19 #include "ash/wm/window_state.h" 21 #include "ash/wm/window_state.h"
20 #include "ash/wm/window_state_aura.h" 22 #include "ash/wm/window_state_aura.h"
21 #include "ash/wm/window_util.h" 23 #include "ash/wm/window_util.h"
22 #include "ash/wm/wm_event.h" 24 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698