commit | 017098787f7979110de23b6e914145d1a9da5c63 | [log] [tgz] |
---|---|---|
author | Antonio Gomes <tonikitoo@igalia.com> | Tue Jan 09 17:25:12 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 09 20:01:41 2018 |
tree | 9bd39011d7c672b3a7e51b2773a9e6722bbbe989 | |
parent | c9ce32e534c8bbf79b437283cf407923030f1d14 [diff] |
[ozone/wayland] Add a mock impl XKBWaylandKeyboardLayoutEngine In order to allow existing unittests (namely WaylandKeyboardTests) and future ones to pass with XKB enabled, we need a specialization of XkbWaylandKeyboardLayoutEngine for tests. Following the logic used throughout the Wayland unittests' machinery, it makes sense to mock a Xkb-capable KeyboardLayoutEngine, rather than using an actual implementation. This CL adds a mock implementation of XkbWaylandKeyboardLayoutEngine to be used by Wayland unittests. For this, it turns XkbWaylandKeyboardLayoutEngine into a pure virtual class, which is implemented by - XkbWaylandKeyboardLayoutEngineImpl, for regular ozone/wayland execution (e.g. chrome/wayland), which keeps the current XkbWaylandKeyboardLayoutEngine logic unchanged; - MockXkbWaylandKeyboardLayoutEngine, a sibling implementation added by this CL, derived from XkbWaylandKeyboardLayoutEngine to be used for unittests. BUG=578890 Change-Id: Ie98f0d5bcf5b45c86812c4fab7dc63e1ffdc0890 Reviewed-on: https://chromium-review.googlesource.com/849032 Reviewed-by: Robert Kroeger <rjkroege@chromium.org> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#528082}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .