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

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

Issue 2484223006: Remove CreateDefaultDisplay(). (Closed)
Patch Set: Remove debug LOG. 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.cc ('k') | services/ui/ws/window_manager_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/user_display_manager_unittest.cc
diff --git a/services/ui/ws/user_display_manager_unittest.cc b/services/ui/ws/user_display_manager_unittest.cc
index cbff4583e61254412789211cece44bdfd6afa646..b99b2c82b5dbd24c729de130b0f8788abfe561ec 100644
--- a/services/ui/ws/user_display_manager_unittest.cc
+++ b/services/ui/ws/user_display_manager_unittest.cc
@@ -128,7 +128,7 @@ class UserDisplayManagerTest : public testing::Test {
};
TEST_F(UserDisplayManagerTest, OnlyNotifyWhenFrameDecorationsSet) {
- window_server_delegate()->set_num_displays_to_create(1);
+ window_server_delegate()->CreateDisplays(1);
const UserId kUserId1 = "2";
TestDisplayManagerObserver display_manager_observer1;
@@ -158,7 +158,7 @@ TEST_F(UserDisplayManagerTest, OnlyNotifyWhenFrameDecorationsSet) {
}
TEST_F(UserDisplayManagerTest, AddObserverAfterFrameDecorationsSet) {
- window_server_delegate()->set_num_displays_to_create(1);
+ window_server_delegate()->CreateDisplays(1);
const UserId kUserId1 = "2";
TestDisplayManagerObserver display_manager_observer1;
@@ -184,7 +184,7 @@ TEST_F(UserDisplayManagerTest, AddObserverAfterFrameDecorationsSet) {
}
TEST_F(UserDisplayManagerTest, AddRemoveDisplay) {
- window_server_delegate()->set_num_displays_to_create(1);
+ window_server_delegate()->CreateDisplays(1);
const UserId kUserId1 = "2";
TestDisplayManagerObserver display_manager_observer1;
@@ -223,7 +223,7 @@ TEST_F(UserDisplayManagerTest, AddRemoveDisplay) {
}
TEST_F(UserDisplayManagerTest, NegativeCoordinates) {
- window_server_delegate()->set_num_displays_to_create(1);
+ window_server_delegate()->CreateDisplays(1);
const UserId kUserId1 = "2";
TestDisplayManagerObserver display_manager_observer1;
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_manager_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698