class DeathStatement

Defined at line 27 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

A Statement to be executed which can throw an exception.

This statement will be executed in a separate thread. The calling thread

will be blocked until the statement completes its execution.

The statement being executed is allowed to use ASSERT_/EXPECT_ mechanisms.

Public Methods

void DeathStatement ()

Defined at line 45 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

void DeathStatement (const DeathStatement & )

Defined at line 48 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

void DeathStatement (DeathStatement && )

Defined at line 49 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

DeathStatement & operator= (const DeathStatement & )

Defined at line 50 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

DeathStatement & operator= (DeathStatement && )

Defined at line 51 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

void ~DeathStatement ()

Defined at line 52 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

State state ()

Returns the current state of the statement.

Defined at line 58 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

const std::string_view error_message ()

Defined at line 60 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h

void DeathStatement (fit::function<void ()> statement)

Take ownership of the closure, explicit move semantics.

Defined at line 203 of file ../../zircon/system/ulib/zxtest/death-statement.cc

void Execute ()

Executes the statement in separate thread.

Defined at line 208 of file ../../zircon/system/ulib/zxtest/death-statement.cc

Enumerations

enum State
Name Value
kUnknown 0
kStarted 1
kInternalError 2
kSuccess 3
kException 4
kBadState 5

Possible results of executing this statement.

Defined at line 30 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/death-statement.h