class Logger

Defined at line 22 of file ../../zircon/system/ulib/driver-unit-test/include/lib/driver-unit-test/logger.h

Logger is used to output test events and messages to a specified channel.

Tests can use RunZxTests to set up the logger instance, and in the tests retrieve

the instance via |GetInstance|. Drivers can then log custom messages using |SendLogMessage|.

Public Methods

zx_status_t CreateInstance (zx::channel ch)

Populates |instance_| with a new logger instance.

Defined at line 19 of file ../../zircon/system/ulib/driver-unit-test/logger.cc

Logger * GetInstance ()

Defined at line 26 of file ../../zircon/system/ulib/driver-unit-test/include/lib/driver-unit-test/logger.h

void DeleteInstance ()

Defined at line 27 of file ../../zircon/system/ulib/driver-unit-test/include/lib/driver-unit-test/logger.h

zx_status_t SendLogMessage (const char * msg)

Sends a log message to the channel.

Defined at line 32 of file ../../zircon/system/ulib/driver-unit-test/logger.cc

void OnTestCaseStart (const zxtest::TestCase & test_case)

LifecycleObserver methods.

Defined at line 64 of file ../../zircon/system/ulib/driver-unit-test/logger.cc

void OnTestCaseEnd (const zxtest::TestCase & test_case)

Defined at line 69 of file ../../zircon/system/ulib/driver-unit-test/logger.cc

void OnTestSuccess (const zxtest::TestCase & test_case, const zxtest::TestInfo & test)

Defined at line 71 of file ../../zircon/system/ulib/driver-unit-test/logger.cc

void OnTestFailure (const zxtest::TestCase & test_case, const zxtest::TestInfo & test)

Defined at line 75 of file ../../zircon/system/ulib/driver-unit-test/logger.cc

void OnTestSkip (const zxtest::TestCase & test_case, const zxtest::TestInfo & test)

Defined at line 79 of file ../../zircon/system/ulib/driver-unit-test/logger.cc