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

Side by Side Diff: ash/test/ash_test_helper.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 1 month 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
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/test/ash_test_impl_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ash/test/ash_test_helper.h" 5 #include "ash/test/ash_test_helper.h"
6 6
7 #include "ash/accelerators/accelerator_controller_delegate_aura.h" 7 #include "ash/accelerators/accelerator_controller_delegate_aura.h"
8 #include "ash/common/material_design/material_design_controller.h" 8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/common/test/material_design_controller_test_api.h" 9 #include "ash/common/test/material_design_controller_test_api.h"
10 #include "ash/common/test/test_new_window_client.h" 10 #include "ash/common/test/test_new_window_client.h"
11 #include "ash/common/test/test_session_state_delegate.h" 11 #include "ash/common/test/test_session_state_delegate.h"
12 #include "ash/common/test/test_system_tray_delegate.h" 12 #include "ash/common/test/test_system_tray_delegate.h"
13 #include "ash/common/test/wm_shell_test_api.h" 13 #include "ash/common/test/wm_shell_test_api.h"
14 #include "ash/common/wm_shell.h" 14 #include "ash/common/wm_shell.h"
15 #include "ash/shell.h" 15 #include "ash/shell.h"
16 #include "ash/shell_init_params.h" 16 #include "ash/shell_init_params.h"
17 #include "ash/test/ash_test_environment.h" 17 #include "ash/test/ash_test_environment.h"
18 #include "ash/test/ash_test_views_delegate.h" 18 #include "ash/test/ash_test_views_delegate.h"
19 #include "ash/test/display_manager_test_api.h"
20 #include "ash/test/shell_test_api.h" 19 #include "ash/test/shell_test_api.h"
21 #include "ash/test/test_screenshot_delegate.h" 20 #include "ash/test/test_screenshot_delegate.h"
22 #include "ash/test/test_shell_delegate.h" 21 #include "ash/test/test_shell_delegate.h"
23 #include "base/memory/ptr_util.h" 22 #include "base/memory/ptr_util.h"
24 #include "base/run_loop.h" 23 #include "base/run_loop.h"
25 #include "ui/aura/env.h" 24 #include "ui/aura/env.h"
26 #include "ui/aura/input_state_lookup.h" 25 #include "ui/aura/input_state_lookup.h"
27 #include "ui/aura/test/env_test_helper.h" 26 #include "ui/aura/test/env_test_helper.h"
28 #include "ui/aura/test/event_generator_delegate_aura.h" 27 #include "ui/aura/test/event_generator_delegate_aura.h"
29 #include "ui/base/ime/input_method_initializer.h" 28 #include "ui/base/ime/input_method_initializer.h"
30 #include "ui/base/material_design/material_design_controller.h" 29 #include "ui/base/material_design/material_design_controller.h"
31 #include "ui/base/test/material_design_controller_test_api.h" 30 #include "ui/base/test/material_design_controller_test_api.h"
32 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 31 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
33 #include "ui/compositor/test/context_factories_for_test.h" 32 #include "ui/compositor/test/context_factories_for_test.h"
34 #include "ui/display/manager/managed_display_info.h" 33 #include "ui/display/manager/managed_display_info.h"
34 #include "ui/display/test/display_manager_test_api.h"
35 #include "ui/message_center/message_center.h" 35 #include "ui/message_center/message_center.h"
36 #include "ui/wm/core/capture_controller.h" 36 #include "ui/wm/core/capture_controller.h"
37 #include "ui/wm/core/cursor_manager.h" 37 #include "ui/wm/core/cursor_manager.h"
38 #include "ui/wm/core/wm_state.h" 38 #include "ui/wm/core/wm_state.h"
39 39
40 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
41 #include "ash/system/chromeos/screen_layout_observer.h" 41 #include "ash/system/chromeos/screen_layout_observer.h"
42 #include "chromeos/audio/cras_audio_handler.h" 42 #include "chromeos/audio/cras_audio_handler.h"
43 #include "chromeos/dbus/dbus_thread_manager.h" 43 #include "chromeos/dbus/dbus_thread_manager.h"
44 #include "device/bluetooth/bluetooth_adapter_factory.h" 44 #include "device/bluetooth/bluetooth_adapter_factory.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 GetTestSessionStateDelegate()->SetActiveUserSessionStarted(true); 142 GetTestSessionStateDelegate()->SetActiveUserSessionStarted(true);
143 GetTestSessionStateDelegate()->SetHasActiveUser(true); 143 GetTestSessionStateDelegate()->SetHasActiveUser(true);
144 } 144 }
145 145
146 #if defined(OS_CHROMEOS) 146 #if defined(OS_CHROMEOS)
147 // Tests that change the display configuration generally don't care about the 147 // Tests that change the display configuration generally don't care about the
148 // notifications and the popup UI can interfere with things like cursors. 148 // notifications and the popup UI can interfere with things like cursors.
149 shell->screen_layout_observer()->set_show_notifications_for_testing(false); 149 shell->screen_layout_observer()->set_show_notifications_for_testing(false);
150 #endif 150 #endif
151 151
152 test::DisplayManagerTestApi(Shell::GetInstance()->display_manager()) 152 display::test::DisplayManagerTestApi(Shell::GetInstance()->display_manager())
153 .DisableChangeDisplayUponHostResize(); 153 .DisableChangeDisplayUponHostResize();
154 ShellTestApi(shell).DisableDisplayAnimator(); 154 ShellTestApi(shell).DisableDisplayAnimator();
155 155
156 test_screenshot_delegate_ = new TestScreenshotDelegate(); 156 test_screenshot_delegate_ = new TestScreenshotDelegate();
157 shell->accelerator_controller_delegate()->SetScreenshotDelegate( 157 shell->accelerator_controller_delegate()->SetScreenshotDelegate(
158 std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_)); 158 std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_));
159 159
160 WmShellTestApi().SetNewWindowClient(base::MakeUnique<TestNewWindowClient>()); 160 WmShellTestApi().SetNewWindowClient(base::MakeUnique<TestNewWindowClient>());
161 } 161 }
162 162
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 bool AshTestHelper::SupportsMultipleDisplays() { 221 bool AshTestHelper::SupportsMultipleDisplays() {
222 #if defined(OS_WIN) 222 #if defined(OS_WIN)
223 return false; 223 return false;
224 #else 224 #else
225 return true; 225 return true;
226 #endif 226 #endif
227 } 227 }
228 228
229 } // namespace test 229 } // namespace test
230 } // namespace ash 230 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/test/ash_test_impl_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698