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 #ifndef UI_OZONE_PLATFORM_WAYLAND_FAKE_SERVER_H_ | 5 #ifndef UI_OZONE_PLATFORM_WAYLAND_FAKE_SERVER_H_ |
6 #define UI_OZONE_PLATFORM_WAYLAND_FAKE_SERVER_H_ | 6 #define UI_OZONE_PLATFORM_WAYLAND_FAKE_SERVER_H_ |
7 | 7 |
8 #include <wayland-server-core.h> | 8 #include <wayland-server-core.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // base::MessagePumpLibevent::Watcher | 189 // base::MessagePumpLibevent::Watcher |
190 void OnFileCanReadWithoutBlocking(int fd) override; | 190 void OnFileCanReadWithoutBlocking(int fd) override; |
191 void OnFileCanWriteWithoutBlocking(int fd) override; | 191 void OnFileCanWriteWithoutBlocking(int fd) override; |
192 | 192 |
193 std::unique_ptr<wl_display, DisplayDeleter> display_; | 193 std::unique_ptr<wl_display, DisplayDeleter> display_; |
194 wl_client* client_ = nullptr; | 194 wl_client* client_ = nullptr; |
195 wl_event_loop* event_loop_ = nullptr; | 195 wl_event_loop* event_loop_ = nullptr; |
196 | 196 |
197 base::WaitableEvent pause_event_; | 197 base::WaitableEvent pause_event_; |
198 base::WaitableEvent resume_event_; | 198 base::WaitableEvent resume_event_; |
199 bool paused_ = false; | |
200 | 199 |
201 MockCompositor compositor_; | 200 MockCompositor compositor_; |
202 MockSeat seat_; | 201 MockSeat seat_; |
203 MockXdgShell xdg_shell_; | 202 MockXdgShell xdg_shell_; |
204 | 203 |
205 base::MessagePumpLibevent::FileDescriptorWatcher controller_; | 204 base::MessagePumpLibevent::FileDescriptorWatcher controller_; |
206 | 205 |
207 DISALLOW_COPY_AND_ASSIGN(FakeServer); | 206 DISALLOW_COPY_AND_ASSIGN(FakeServer); |
208 }; | 207 }; |
209 | 208 |
210 } // namespace wl | 209 } // namespace wl |
211 | 210 |
212 #endif // UI_OZONE_PLATFORM_WAYLAND_FAKE_SERVER_H_ | 211 #endif // UI_OZONE_PLATFORM_WAYLAND_FAKE_SERVER_H_ |
OLD | NEW |