| 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;
|
| }
|
|
|