class TestDriverImpl
Defined at line 34 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h
Test Driver implementation for the runner. Observes lifecycle events to
reset the test state correctly.
Public Methods
void TestDriverImpl ()
Defined at line 23 of file ../../zircon/system/ulib/zxtest/runner.cc
void ~TestDriverImpl ()
Defined at line 24 of file ../../zircon/system/ulib/zxtest/runner.cc
void Skip ()
Called when a test is skipped.
Defined at line 26 of file ../../zircon/system/ulib/zxtest/runner.cc
bool Continue ()
Return true if the is allowed to continue execution.
Defined at line 28 of file ../../zircon/system/ulib/zxtest/runner.cc
void OnTestStart (const TestCase & test_case, const TestInfo & test)
Reports before every test starts.
Defined at line 32 of file ../../zircon/system/ulib/zxtest/runner.cc
void OnTestSkip (const TestCase & test_case, const TestInfo & test)
Reports after a test execution was skipped.
Defined at line 36 of file ../../zircon/system/ulib/zxtest/runner.cc
void OnTestFailure (const TestCase & test_case, const TestInfo & test)
Reports after test execution completed with failures.
Defined at line 42 of file ../../zircon/system/ulib/zxtest/runner.cc
void OnTestSuccess (const TestCase & test_case, const TestInfo & test)
Reports after test execution completed with no failures.
Defined at line 38 of file ../../zircon/system/ulib/zxtest/runner.cc
bool IsSkipped ()
Return true if the test has been skipped.
Defined at line 43 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h
void OnAssertion (const Assertion & assertion)
Reports when current test assert condition fails. May be called
concurrently from multiple threads.
Defined at line 46 of file ../../zircon/system/ulib/zxtest/runner.cc
TestStatus Status ()
Returns the status of the current test.
Defined at line 49 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h
void Reset ()
Resets the states for running new tests.
Defined at line 55 of file ../../zircon/system/ulib/zxtest/runner.cc
bool CurrentTestHasAnyFailures ()
Returns whether the current test has any failures so far. May be
called concurrently from multiple threads.
Defined at line 72 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h
bool HadAnyFailures ()
Returns whether any test driven by this instance had any test failure.
This is not cleared on |TestDriverImpl::Reset|.
Defined at line 76 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h
void EnableAsserts ()
Control whether calls to OnAssertion do anything.
Defined at line 79 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h
void DisableAsserts ()
Defined at line 80 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h