xorg-gtest  0.1
Xorg testing extension to Google Test
SubTest Class Reference

Example class for how to subclass tests. More...

Inheritance diagram for SubTest:
xorg::testing::Test

Public Member Functions

virtual void SetUp (void)
 Tries to connect to an X server instance. More...
 

Protected Attributes

Atom example_prop
 Example property that we'll use in the test. More...
 

Additional Inherited Members

- Protected Member Functions inherited from xorg::testing::Test
virtual void TearDown ()
 Closes the display. More...
 
::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...
 

Detailed Description

Example class for how to subclass tests.

Examples:
xorg-gtest-environment-example.cpp.

Member Function Documentation

◆ 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_errorif no X server is running.

Reimplemented from xorg::testing::Test.

Member Data Documentation

◆ example_prop

Atom SubTest::example_prop
protected

Example property that we'll use in the test.


The documentation for this class was generated from the following file: