Diffusion KWin 513878e20df4

[autotest/integration] Introduce a Test helper library to have less code…

Authored by graesslin on Jun 30 2016, 11:32 AM.

Description

[autotest/integration] Introduce a Test helper library to have less code duplication

Summary:
A new namespace KWin::Test is added which provides a few helper
functions. It makes it easy to setup a KWayland client connection with
the base set to be able to create a Surface and flags to create
additional interfaces. This replaces the KWayland connection dance in
init() methods. For cleanup() there is also a dedicated helper function.

In addition there are helper functions to:

  • render a surface
  • create a surface
  • create a shell surface
  • flush the wayland client connection
  • access to the created interfaces - for compatibility with existing code

The idea is to extend this Test library also for other common use cases
like creating an X11 connection and X11 windows, etc.

Reviewers: KWin, Plasma on Wayland

Subscribers: plasma-devel, kwin

Tags: Plasma on Wayland, KWin

Differential Revision: https://phabricator.kde.org/D2053