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

Unified Diff: services/ui/ws/test_utils.cc

Issue 2481013008: Delete WindowManagerWindowTreeFactorySetTestApi. (Closed)
Patch Set: Make const ref. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/user_display_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.cc
diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc
index 42fdfde45586a30ddfa0c8cbbf3bbec181e3689f..ecf714ed684335ef2ffed3e1be9d4733a97f1728 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -88,24 +88,6 @@ ClientWindowId NextUnusedClientWindowId(WindowTree* tree) {
} // namespace
-// WindowManagerWindowTreeFactorySetTestApi ------------------------------------
-
-WindowManagerWindowTreeFactorySetTestApi::
- WindowManagerWindowTreeFactorySetTestApi(
- WindowManagerWindowTreeFactorySet*
- window_manager_window_tree_factory_set)
- : window_manager_window_tree_factory_set_(
- window_manager_window_tree_factory_set) {}
-
-WindowManagerWindowTreeFactorySetTestApi::
- ~WindowManagerWindowTreeFactorySetTestApi() {}
-
-void WindowManagerWindowTreeFactorySetTestApi::Add(const UserId& user_id) {
- WindowManagerWindowTreeFactory* factory =
- window_manager_window_tree_factory_set_->Add(user_id, nullptr);
- factory->CreateWindowTree(nullptr, nullptr);
-}
-
// TestPlatformDisplayFactory -------------------------------------------------
const int64_t TestPlatformDisplayFactory::kFirstDisplayId = 1;
@@ -549,6 +531,12 @@ void WindowEventTargetingHelper::SetTaskRunner(
// ----------------------------------------------------------------------------
+void AddWindowManager(WindowServer* window_server, const UserId& user_id) {
+ window_server->window_manager_window_tree_factory_set()
+ ->Add(user_id, nullptr)
+ ->CreateWindowTree(nullptr, nullptr);
+}
+
ServerWindow* FirstRoot(WindowTree* tree) {
return tree->roots().size() == 1u
? tree->GetWindow((*tree->roots().begin())->id())
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/user_display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698