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

Unified Diff: services/ui/ws/cursor_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 | « no previous file | services/ui/ws/display_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/cursor_unittest.cc
diff --git a/services/ui/ws/cursor_unittest.cc b/services/ui/ws/cursor_unittest.cc
index a3f59444200db61faa16f4b44407e36940807fdc..fa27a94a8ed7cc059ab98523af908ddd07943a03 100644
--- a/services/ui/ws/cursor_unittest.cc
+++ b/services/ui/ws/cursor_unittest.cc
@@ -49,7 +49,8 @@ class CursorTest : public testing::Test {
protected:
// testing::Test:
void SetUp() override {
- window_server_delegate()->CreateDisplays(1);
+ platform_screen_.Init(window_server()->display_manager());
+ platform_screen_.AddDisplay();
// As a side effect, this allocates Displays.
AddWindowManager(window_server(), kTestId1);
@@ -103,6 +104,7 @@ class CursorTest : public testing::Test {
private:
WindowServerTestHelper ws_test_helper_;
+ TestPlatformScreen platform_screen_;
DISALLOW_COPY_AND_ASSIGN(CursorTest);
};
« no previous file with comments | « no previous file | services/ui/ws/display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698