xorg-gtest 0.1
Xorg testing extension to Google Test
|
Example for a test fixture that starts a server per test. More...
Public Member Functions | |
virtual void | SetUp (void) |
Tries to connect to an X server instance. | |
virtual void | TearDown (void) |
Closes the display. | |
Protected Attributes | |
XServer | server |
The X server instance. | |
Additional Inherited Members | |
![]() | |
::Display * | Display () const |
Accesses the display representing an Xlib connection. | |
void | SetDisplayString (const std::string &display) |
Set the display string used for XOpenDisplay() and thus affects Test::Display(). | |
Example for a test fixture that starts a server per test.
|
inlinevirtual |
Tries to connect to an X server instance.
Fails if no X server is running. Updates the display object. Reimplemented from ::testing::Test. See Google Test documentation for details.
std::runtime_error | if no X server is running. |
Reimplemented from xorg::testing::Test.
|
inlinevirtual |
Closes the display.
Reimplemented from ::testing::Test. See Google Test documentation for details.
Reimplemented from xorg::testing::Test.
|
protected |
The X server instance.