OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell.h" | 5 #include "ash/shell.h" |
6 #include "ash/test/ash_test_base.h" | 6 #include "ash/test/ash_test_base.h" |
7 #include "ash/test/test_session_state_delegate.h" | 7 #include "ash/test/test_session_state_delegate.h" |
8 #include "ash/test/test_shell_delegate.h" | 8 #include "ash/test/test_shell_delegate.h" |
9 #include "ash/wm/window_state.h" | 9 #include "ash/wm/window_state.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/chromeos/extensions/wallpaper_private_api.h" | 12 #include "chrome/browser/chromeos/extensions/wallpaper_private_api.h" |
13 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" | 13 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" |
14 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 14 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
15 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" | 15 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" |
16 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" | 16 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" |
17 #include "ui/aura/test/test_windows.h" | 17 #include "ui/aura/test/test_windows.h" |
18 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
19 #include "ui/aura/window_event_dispatcher.h" | 19 #include "ui/aura/window_event_dispatcher.h" |
20 | 20 |
21 //#include "base/compiler_specific.h" | |
22 //#include "base/logging.h" | |
23 //#include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" | |
24 namespace chromeos { | 21 namespace chromeos { |
25 namespace { | 22 namespace { |
26 | 23 |
27 const char* kTestAccount1 = "user1@test.com"; | 24 const char kTestAccount1[] = "user1@test.com"; |
28 const char* kTestAccount2 = "user2@test.com"; | 25 const char kTestAccount2[] = "user2@test.com"; |
29 | 26 |
30 class WallpaperPrivateApiUnittest : public ash::test::AshTestBase { | 27 class WallpaperPrivateApiUnittest : public ash::test::AshTestBase { |
31 public: | 28 public: |
32 WallpaperPrivateApiUnittest() | 29 WallpaperPrivateApiUnittest() |
33 : fake_user_manager_(new FakeUserManager()), | 30 : fake_user_manager_(new FakeUserManager()), |
34 scoped_user_manager_(fake_user_manager_) { | 31 scoped_user_manager_(fake_user_manager_) { |
35 } | 32 } |
36 | 33 |
37 protected: | 34 protected: |
38 FakeUserManager* fake_user_manager() { | 35 FakeUserManager* fake_user_manager() { |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 scoped_refptr<TestRestoreFunction> restore_function_1( | 392 scoped_refptr<TestRestoreFunction> restore_function_1( |
396 new TestRestoreFunction()); | 393 new TestRestoreFunction()); |
397 EXPECT_TRUE(restore_function_1->RunAsync()); | 394 EXPECT_TRUE(restore_function_1->RunAsync()); |
398 | 395 |
399 EXPECT_FALSE(window1_state->IsMinimized()); | 396 EXPECT_FALSE(window1_state->IsMinimized()); |
400 EXPECT_FALSE(window2_state->IsMinimized()); | 397 EXPECT_FALSE(window2_state->IsMinimized()); |
401 EXPECT_FALSE(window3_state->IsMinimized()); | 398 EXPECT_FALSE(window3_state->IsMinimized()); |
402 } | 399 } |
403 | 400 |
404 } // namespace chromeos | 401 } // namespace chromeos |
OLD | NEW |