class TestDriverImpl

Defined at line 38 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 22 of file ../../zircon/system/ulib/zxtest/runner.cc

void ~TestDriverImpl ()

Defined at line 23 of file ../../zircon/system/ulib/zxtest/runner.cc

void Skip ()

Called when a test is skipped.

Defined at line 25 of file ../../zircon/system/ulib/zxtest/runner.cc

bool Continue ()

Return true if the is allowed to continue execution.

Defined at line 27 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 31 of file ../../zircon/system/ulib/zxtest/runner.cc

void OnAssertion (const Assertion & assertion)

Reports when current test assert condition fails. May be called

concurrently from multiple threads.

Defined at line 45 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 35 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 41 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 37 of file ../../zircon/system/ulib/zxtest/runner.cc

bool IsSkipped ()

Return true if the test has been skipped.

Defined at line 47 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h

TestStatus Status ()

Returns the status of the current test.

Defined at line 53 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h

void Reset ()

Resets the states for running new tests.

Defined at line 54 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 76 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 80 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h

void EnableAsserts ()

Control whether calls to OnAssertion do anything.

Defined at line 83 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h

void DisableAsserts ()

Defined at line 84 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/runner.h