OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <wayland-server-core.h> | 5 #include <wayland-server-core.h> |
6 #include <xdg-shell-unstable-v5-server-protocol.h> | 6 #include <xdg-shell-unstable-v5-server-protocol.h> |
7 | 7 |
| 8 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/ozone/platform/wayland/fake_server.h" | 11 #include "ui/ozone/platform/wayland/fake_server.h" |
11 #include "ui/ozone/platform/wayland/wayland_connection.h" | 12 #include "ui/ozone/platform/wayland/wayland_connection.h" |
12 #include "ui/ozone/platform/wayland/wayland_output.h" | 13 #include "ui/ozone/platform/wayland/wayland_output.h" |
13 | 14 |
14 namespace ui { | 15 namespace ui { |
15 | 16 |
16 class OutputObserver : public WaylandOutput::Observer { | 17 class OutputObserver : public WaylandOutput::Observer { |
17 public: | 18 public: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 WaylandOutput* output = connection.PrimaryOutput(); | 78 WaylandOutput* output = connection.PrimaryOutput(); |
78 ASSERT_TRUE(output->Geometry().width() == 800); | 79 ASSERT_TRUE(output->Geometry().width() == 800); |
79 ASSERT_TRUE(output->Geometry().height() == 600); | 80 ASSERT_TRUE(output->Geometry().height() == 600); |
80 | 81 |
81 server.Resume(); | 82 server.Resume(); |
82 base::RunLoop().RunUntilIdle(); | 83 base::RunLoop().RunUntilIdle(); |
83 server.Pause(); | 84 server.Pause(); |
84 } | 85 } |
85 | 86 |
86 } // namespace ui | 87 } // namespace ui |
OLD | NEW |