Example class for how to subclass tests.
More...
|
virtual void | SetUp (void) |
| Tries to connect to an X server instance.
|
|
|
Atom | example_prop |
| Example property that we'll use in the test.
|
|
|
virtual void | TearDown () |
| Closes the display.
|
|
::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 class for how to subclass tests.
- Examples
- xorg-gtest-environment-example.cpp.
◆ SetUp()
virtual void SubTest::SetUp |
( |
void |
| ) |
|
|
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.
- Postcondition
- Subsequent calls to Display() return a valid pointer or NULL if an error occured.
- Exceptions
-
std::runtime_error | if no X server is running. |
Reimplemented from xorg::testing::Test.
- Examples
- xorg-gtest-environment-example.cpp.
◆ example_prop
Atom SubTest::example_prop |
|
protected |
The documentation for this class was generated from the following file:
- /build/xorg-gtest-pyYBLA/xorg-gtest-0.7.1/examples/xorg-gtest-environment-example.cpp