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

Unified Diff: ash/mus/test/wm_test_helper.h

Issue 2847283002: chromeos: convert remaining AshTest usage to AshTestBase (Closed)
Patch Set: comment Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/test/wm_test_base.cc ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/test/wm_test_helper.h
diff --git a/ash/mus/test/wm_test_helper.h b/ash/mus/test/wm_test_helper.h
deleted file mode 100644
index f28c7582fd79f81b9193e27a61e6d3d3bce346ea..0000000000000000000000000000000000000000
--- a/ash/mus/test/wm_test_helper.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_MUS_TEST_WM_TEST_HELPER_H_
-#define ASH_MUS_TEST_WM_TEST_HELPER_H_
-
-#include <memory>
-
-#include "ash/mus/window_manager_application.h"
-#include "base/macros.h"
-#include "ui/aura/test/mus/test_window_tree_client_setup.h"
-
-namespace aura {
-class WindowTreeClientPrivate;
-}
-
-namespace base {
-class MessageLoop;
-class SequencedWorkerPoolOwner;
-}
-
-namespace ui {
-class InputDeviceClient;
-}
-
-namespace views {
-class ViewsDelegate;
-}
-
-namespace ash {
-
-class RootWindowController;
-
-namespace mus {
-
-// WMTestHelper is responsible for configuring a WindowTreeClient that
-// does not talk to mus.
-class WmTestHelper {
- public:
- WmTestHelper();
- ~WmTestHelper();
-
- void Init();
-
- WindowManagerApplication* window_manager_app() {
- return window_manager_app_.get();
- }
-
- // Returns the RootWindowControllers ordered by display id (which we assume
- // correlates with creation order).
- std::vector<RootWindowController*> GetRootsOrderedByDisplayId();
-
- void UpdateDisplay(const std::string& display_spec);
-
- private:
- // Creates a new RootWindowController given |display_spec|, which is the
- // configuration of the display. On entry |next_x| is the x-coordinate to
- // place the display at, on exit |next_x| is set to the x-coordinate to place
- // the next display at.
- RootWindowController* CreateRootWindowController(
- const std::string& display_spec,
- int* next_x);
-
- // Updates the display of an existing RootWindowController. See
- // CreateRootWindowController() for details on |next_x|.
- void UpdateDisplay(RootWindowController* root_window_controller,
- const std::string& display_spec,
- int* next_x);
-
- // Destroys a RootWindowController.
- void DestroyRootWindowController(
- RootWindowController* root_window_controller);
-
- std::unique_ptr<base::MessageLoop> message_loop_;
- std::unique_ptr<views::ViewsDelegate> views_delegate_;
- aura::TestWindowTreeClientSetup window_tree_client_setup_;
- std::unique_ptr<WindowManagerApplication> window_manager_app_;
- std::unique_ptr<aura::WindowTreeClientPrivate> window_tree_client_private_;
-
- // Id for the next Display created by CreateRootWindowController().
- int64_t next_display_id_ = 1;
-
- std::unique_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_;
-
- std::unique_ptr<ui::InputDeviceClient> input_device_client_;
-
- DISALLOW_COPY_AND_ASSIGN(WmTestHelper);
-};
-
-} // namespace mus
-} // namespace ash
-
-#endif // ASH_MUS_TEST_WM_TEST_HELPER_H_
« no previous file with comments | « ash/mus/test/wm_test_base.cc ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698