~compiz-team/compiz/compiz.workaround_92599

Viewing all changes in revision 3382.

  • Committer: Tarmac
  • Author(s): Sam Spilsbury
  • Date: 2012-09-20 18:25:11 UTC
  • mfrom: (3375.3.10 compiz)
  • Revision ID: tarmac-20120920182511-svt36y79zm7en1v2
This adds a system testing framework based on Xorg-GTest (launchpad.net/xorg-gtest). It will find an existing installation of xorg-gtest and compile it locally (similar to Google Test) and provides a class XorgSystemTest in the namespace compiz::testing, which will spawn compiz inside of a dummy X Sever. You can then test by interacting with the server and querying its state.

XEventMatcher is a very basic concept for matching X events as they come in. Right now, the events have to be matched in order, but its feasible that in future we could have out of order matching like we do in Google Mock. Some utility functions added on top of xorg-gtest were WaitForEventOfTypeOnWindow, which works just like the former function by checks if it matches a window or satisfies some arbitrary criteria in the case of WaitForEventOfTypeOnWindowMatching.. Fixes: . Approved by Daniel van Vugt, jenkins.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: