Responsible for handling asynchronous tests.
More...
#include <vici/testmgr.h>
|
bool | done |
| This should be set by the handleEvent function.
|
|
std::chrono::steady_clock::time_point | startTime |
| The time when the test is started.
|
|
std::chrono::steady_clock::duration | timeOut |
| The time to wait. The default is 10 seconds.
|
|
std::string | name |
| The name of the test case.
|
|
ScenarioResults * | scenario |
| Results for the scenario are placed in here.
|
|
|
static const bool | EXPECTED = true |
| Value for expected parameter of test()
|
|
Responsible for handling asynchronous tests.
AsyncTestCase::AsyncTestCase |
( |
csr |
name | ) |
|
Constructor.
- Parameters
-
name | The name of the test case. |
virtual void VICI::cdi::AsyncTestCase::handleEvent |
( |
TestEvent * |
ev | ) |
|
|
protectedpure virtual |
Handle the events.
When the object under test gets its call back it will queue an event which is passed to this function. Set done to true when the last expected event arrives.
- Parameters
-
virtual void VICI::cdi::AsyncTestCase::initTest |
( |
| ) |
|
|
protectedpure virtual |
Initiate the test case.
The derived class should use this to start the test function. It should return immediately the test has been started.
virtual void VICI::cdi::AsyncTestCase::timedOut |
( |
| ) |
|
|
protectedpure virtual |
Handle time out.
This gets called if the events don't arrive in time.
The documentation for this class was generated from the following files: