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
3 // found in the LICENSE file.
5 #include "ash/wm/workspace_controller_test_helper.h"
7 #include "ash/wm/workspace_controller.h"
8 #include "ash/wm/workspace/workspace_event_handler_test_helper.h"
9 #include "ui/aura/window.h"
14 WorkspaceControllerTestHelper::WorkspaceControllerTestHelper(
15 WorkspaceController
* controller
)
16 : controller_(controller
) {
19 WorkspaceControllerTestHelper::~WorkspaceControllerTestHelper() {
22 WorkspaceEventHandler
* WorkspaceControllerTestHelper::GetEventHandler() {
23 ui::EventTarget::TestApi
test_api(controller_
->viewport_
->children()[0]);
24 return static_cast<WorkspaceEventHandler
*>(
25 test_api
.pre_target_handlers().front());
28 MultiWindowResizeController
*
29 WorkspaceControllerTestHelper::GetMultiWindowResizeController() {
30 return WorkspaceEventHandlerTestHelper(GetEventHandler()).resize_controller();
33 } // namespace internal