class RealmRoot

Defined at line 43 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.h

Root of a constructed Realm. This object can not be instantiated directly.

Instead, it can only be constructed with the Realm::Builder/Build().

Public Methods

void RealmRoot (RealmRoot && other)

Defined at line 45 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.h

RealmRoot & operator= (RealmRoot && other)

Defined at line 46 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.h

void RealmRoot (const RealmRoot & other)

Defined at line 48 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.h

RealmRoot & operator= (const RealmRoot & other)

Defined at line 49 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.h

void ~RealmRoot ()

Defined at line 496 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.cc

void Teardown (ScopedChild::TeardownCallback on_teardown_complete)

Destructs the root component and sends Component Manager a request to

destroy its realm, which will stop all child components. Each

|LocalComponentImpl| should receive an |OnStop()| callback, and after

returning, the |LocalComponentImpl| will be destructed.

|on_teardown_complete| will be invoked when Component Manager has completed

the realm teardown.

Defined at line 498 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.cc

ScopedChild & component ()

Returns reference to underlying |ScopedChild| object. Note that this object

will be destroyed if |Teardown| is invoked. In that scenario, using this

value will yield undefined behavior. Invoking this method after |Teardown| is

invoked will cause this process to panic.

Defined at line 502 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.cc

const ScopedChild & component ()

Defined at line 504 of file ../../sdk/lib/sys/component/cpp/testing/realm_builder.cc

Friends

class RealmBuilder
class Realm