|
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. More... | |
| virtual void | TearDown (void) |
| Closes the display. More... | |
Protected Attributes | |
| XServer | server |
| The X server instance. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from xorg::testing::Test | |
| ::Display * | Display () const |
| Accesses the display representing an Xlib connection. More... | |
| void | SetDisplayString (const std::string &display) |
| Set the display string used for XOpenDisplay() and thus affects Test::Display(). More... | |
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.