component_testing::RealmBuilder

Summary

Constructors and Destructors

RealmBuilder(RealmBuilder &&)
RealmBuilder(const RealmBuilder &)

Public static functions

Create(std::shared_ptr< sys::ServiceDirectory > svc)
CreateFromRelativeUrl(std::string_view fragment_only_url, std::shared_ptr< sys::ServiceDirectory > svc)

Public functions

AddChild(const std::string & child_name, const std::string & url, const ChildOptions & options)
AddChildRealm(const std::string & child_name, const ChildOptions & options)
AddLegacyChild(const std::string & child_name, const std::string & url, const ChildOptions & options)
AddLocalChild(const std::string & child_name, LocalComponent *local_impl, const ChildOptions & options) ZX_REMOVED_SINCE(1
AddLocalChild(..., LocalComponentFactory, ...)
AddLocalChild(const std::string & child_name, LocalComponentFactory local_impl, const ChildOptions & options)
AddRoute(Route route)
Build(async_dispatcher_t *dispatcher)
GetComponentDecl(const std::string & child_name)
fuchsia::component::decl::Component
GetRealmDecl()
fuchsia::component::decl::Component
InitMutableConfigFromPackage(const std::string & name)
InitMutableConfigToEmpty(const std::string & name)
ReplaceComponentDecl(const std::string & child_name, fuchsia::component::decl::Component decl)
void
ReplaceRealmDecl(fuchsia::component::decl::Component decl)
void
RouteReadOnlyDirectory(const std::string & name, std::vector< Ref > to, DirectoryContents directory)
SetConfigValue(const std::string & name, const std::string & key, ConfigValue value)
SetRealmCollection(const std::string & collection)
SetRealmName(const std::string & name)
operator=(RealmBuilder &&)=default
operator=(const RealmBuilder &)=delete
root()
Realm &

Public static functions

Create

RealmBuilder Create(
  std::shared_ptr< sys::ServiceDirectory > svc
)

CreateFromRelativeUrl

RealmBuilder CreateFromRelativeUrl(
  std::string_view fragment_only_url,
  std::shared_ptr< sys::ServiceDirectory > svc
)

Public functions

AddChild

RealmBuilder & AddChild(
  const std::string & child_name,
  const std::string & url,
  const ChildOptions & options
)

AddChildRealm

Realm AddChildRealm(
  const std::string & child_name,
  const ChildOptions & options
)

AddLegacyChild

RealmBuilder & AddLegacyChild(
  const std::string & child_name,
  const std::string & url,
  const ChildOptions & options
)

AddLocalChild

RealmBuilder & AddLocalChild(
  const std::string & child_name,
  LocalComponent *local_impl,
  const ChildOptions & options
) ZX_REMOVED_SINCE(1

AddLocalChild

RealmBuilder Use AddLocalChild(
  ...,
  LocalComponentFactory,
  ...
)

AddLocalChild

RealmBuilder & AddLocalChild(
  const std::string & child_name,
  LocalComponentFactory local_impl,
  const ChildOptions & options
)

AddRoute

RealmBuilder & AddRoute(
  Route route
)

Build

RealmRoot Build(
  async_dispatcher_t *dispatcher
)

GetComponentDecl

fuchsia::component::decl::Component GetComponentDecl(
  const std::string & child_name
)

GetRealmDecl

fuchsia::component::decl::Component GetRealmDecl()

InitMutableConfigFromPackage

RealmBuilder & InitMutableConfigFromPackage(
  const std::string & name
)

InitMutableConfigToEmpty

RealmBuilder & InitMutableConfigToEmpty(
  const std::string & name
)

RealmBuilder

 RealmBuilder(
  RealmBuilder &&
)=default

RealmBuilder

 RealmBuilder(
  const RealmBuilder &
)=delete

ReplaceComponentDecl

void ReplaceComponentDecl(
  const std::string & child_name,
  fuchsia::component::decl::Component decl
)

ReplaceRealmDecl

void ReplaceRealmDecl(
  fuchsia::component::decl::Component decl
)

RouteReadOnlyDirectory

RealmBuilder & RouteReadOnlyDirectory(
  const std::string & name,
  std::vector< Ref > to,
  DirectoryContents directory
)

SetConfigValue

RealmBuilder & SetConfigValue(
  const std::string & name,
  const std::string & key,
  ConfigValue value
)

SetRealmCollection

RealmBuilder & SetRealmCollection(
  const std::string & collection
)

SetRealmName

RealmBuilder & SetRealmName(
  const std::string & name
)

operator=

RealmBuilder & operator=(
  RealmBuilder &&
)=default

operator=

RealmBuilder & operator=(
  const RealmBuilder &
)=delete

root

Realm & root()