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

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

Issue 2512593003: Cleanup display creation in mus tests. (Closed)
Patch Set: Make const. 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/window_manager_state_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree_unittest.cc
diff --git a/services/ui/ws/window_tree_unittest.cc b/services/ui/ws/window_tree_unittest.cc
index 6e0d53ae73e8b47ff54f64bfc3e97a149f9cc9ef..10c6cbb382fb5ad1283264d98d4634d3ea531b5d 100644
--- a/services/ui/ws/window_tree_unittest.cc
+++ b/services/ui/ws/window_tree_unittest.cc
@@ -18,6 +18,7 @@
#include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/surfaces/display_compositor.h"
#include "services/ui/ws/default_access_policy.h"
+#include "services/ui/ws/display_manager.h"
#include "services/ui/ws/ids.h"
#include "services/ui/ws/platform_display.h"
#include "services/ui/ws/platform_display_factory.h"
@@ -1355,9 +1356,10 @@ TEST_F(WindowTreeShutdownTest, DontSendMessagesDuringShutdown) {
// Create a tree with one window.
WindowServerTestHelper ws_test_helper;
WindowServer* window_server = ws_test_helper.window_server();
+ TestPlatformScreen platform_screen;
+ platform_screen.Init(window_server->display_manager());
window_server->user_id_tracker()->AddUserId(kTestUserId1);
- const int kNumHostsToCreate = 1;
- ws_test_helper.window_server_delegate()->CreateDisplays(kNumHostsToCreate);
+ platform_screen.AddDisplay();
AddWindowManager(window_server, kTestUserId1);
window_server->user_id_tracker()->SetActiveUserId(kTestUserId1);
« no previous file with comments | « services/ui/ws/window_manager_state_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698