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

Unified Diff: services/ui/ws/test_utils.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.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 b707038ba101be19004ab52d0f04e0cecfe41c1d..42fdfde45586a30ddfa0c8cbbf3bbec181e3689f 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -420,6 +420,14 @@ mojom::WindowTreeClient* TestWindowTreeBinding::CreateClientForShutdown() {
TestWindowServerDelegate::TestWindowServerDelegate() {}
TestWindowServerDelegate::~TestWindowServerDelegate() {}
+void TestWindowServerDelegate::CreateDisplays(int num_displays) {
+ DCHECK_GT(num_displays, 0);
+ DCHECK(window_server_);
+
+ for (int i = 0; i < num_displays; ++i)
+ AddDisplay();
+}
+
Display* TestWindowServerDelegate::AddDisplay() {
// Display manages its own lifetime.
Display* display = new Display(window_server_, PlatformDisplayInitParams());
@@ -444,14 +452,6 @@ TestWindowServerDelegate::CreateWindowTreeBinding(
return std::move(binding);
}
-void TestWindowServerDelegate::CreateDefaultDisplays() {
- DCHECK(num_displays_to_create_);
- DCHECK(window_server_);
-
- for (int i = 0; i < num_displays_to_create_; ++i)
- AddDisplay();
-}
-
bool TestWindowServerDelegate::IsTestConfig() const {
return true;
}
« 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