# component_testing Namespace

# component_testing

## Summary

| ### Typedefs ||
|---|---|
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1ae871c694d688ba826e44713972eca2f6` | using `std::variant< https://fuchsia.dev/reference/cpp/struct/component-testing/parent-ref#structcomponent__testing_1_1_parent_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/child-ref#structcomponent__testing_1_1_child_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/framework-ref#structcomponent__testing_1_1_framework_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/void-ref#structcomponent__testing_1_1_void_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/self-ref#structcomponent__testing_1_1_self_ref >` |
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1aec8a62dd6859460d4ffe80f4a930a48f` | using `std::variant< https://fuchsia.dev/reference/cpp/struct/component-testing/protocol#structcomponent__testing_1_1_protocol, https://fuchsia.dev/reference/cpp/struct/component-testing/service#structcomponent__testing_1_1_service, https://fuchsia.dev/reference/cpp/struct/component-testing/directory#structcomponent__testing_1_1_directory, https://fuchsia.dev/reference/cpp/struct/component-testing/storage#structcomponent__testing_1_1_storage, https://fuchsia.dev/reference/cpp/struct/component-testing/config#structcomponent__testing_1_1_config, https://fuchsia.dev/reference/cpp/struct/component-testing/dictionary#structcomponent__testing_1_1_dictionary, https://fuchsia.dev/reference/cpp/struct/component-testing/resolver#structcomponent__testing_1_1_resolver, https://fuchsia.dev/reference/cpp/struct/component-testing/runner#structcomponent__testing_1_1_runner >` |
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1a29d7b9747b6b5a911c9ea576ca50c69b` | using `fuchsia::component::decl::DependencyType` |
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1a3e7fe218083970ab345fd3e278ae0bda` | using `https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl< std::unique_ptr< https://fuchsia.dev/reference/cpp/class/component-testing/local-component-impl-base#classcomponent__testing_1_1_local_component_impl_base >()>` |
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1a64fdeaf9be19c507ddc0290480a2bd0a` | using `https://fuchsia.dev/reference/cpp/class/component-testing/local-hlcpp-component#classcomponent__testing_1_1_local_hlcpp_component` |
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1a1363dc5ba7c4d4a06becfa8e27d6daf6` | using `std::variant< https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl >` |
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1ab3d6f83d11280215bec7e8f108ce64bf` | using `std::variant< https://fuchsia.dev/reference/cpp/struct/component-testing/parent-ref#structcomponent__testing_1_1_parent_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/child-ref#structcomponent__testing_1_1_child_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/collection-ref#structcomponent__testing_1_1_collection_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/framework-ref#structcomponent__testing_1_1_framework_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/void-ref#structcomponent__testing_1_1_void_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/self-ref#structcomponent__testing_1_1_self_ref, https://fuchsia.dev/reference/cpp/struct/component-testing/dictionary-ref#structcomponent__testing_1_1_dictionary_ref >` |
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1acee3e3e31f94e1c16e00d6d4f10b8b43` | using `fuchsia::component::decl::StartupMode` |

| ### Functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/namespace/component-testing#namespacecomponent__testing_1a7550f58ca2325fe028bc3d8322499b61(1, 9, 17, "Use https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl instead.")` | `class https://fuchsia.dev/reference/cpp/class/component-testing/local-component#classcomponent__testing_1_1_local_component` |

| ### Classes ||
|---|---|
| [component_testing::ConfigValue](https://fuchsia.dev/reference/cpp/class/component-testing/config-value) |   |
| [component_testing::DirectoryContents](https://fuchsia.dev/reference/cpp/class/component-testing/directory-contents) |   |
| [component_testing::ExecutionController](https://fuchsia.dev/reference/cpp/class/component-testing/execution-controller) |   |
| [component_testing::LocalComponent](https://fuchsia.dev/reference/cpp/class/component-testing/local-component) |   |
| [component_testing::LocalComponentHandles](https://fuchsia.dev/reference/cpp/class/component-testing/local-component-handles) |   |
| [component_testing::LocalComponentImplBase](https://fuchsia.dev/reference/cpp/class/component-testing/local-component-impl-base) |   |
| [component_testing::LocalCppComponent](https://fuchsia.dev/reference/cpp/class/component-testing/local-cpp-component) |   |
| [component_testing::LocalHlcppComponent](https://fuchsia.dev/reference/cpp/class/component-testing/local-hlcpp-component) |   |
| [component_testing::Realm](https://fuchsia.dev/reference/cpp/class/component-testing/realm) |   |
| [component_testing::RealmBuilder](https://fuchsia.dev/reference/cpp/class/component-testing/realm-builder) |   |
| [component_testing::RealmRoot](https://fuchsia.dev/reference/cpp/class/component-testing/realm-root) |   |
| [component_testing::ScopedChild](https://fuchsia.dev/reference/cpp/class/component-testing/scoped-child) |   |

| ### Structs ||
|---|---|
| [component_testing::BinaryContents](https://fuchsia.dev/reference/cpp/struct/component-testing/binary-contents) |   |
| [component_testing::ChildOptions](https://fuchsia.dev/reference/cpp/struct/component-testing/child-options) |   |
| [component_testing::ChildRef](https://fuchsia.dev/reference/cpp/struct/component-testing/child-ref) |   |
| [component_testing::CollectionRef](https://fuchsia.dev/reference/cpp/struct/component-testing/collection-ref) |   |
| [component_testing::Config](https://fuchsia.dev/reference/cpp/struct/component-testing/config) |   |
| [component_testing::ConfigCapability](https://fuchsia.dev/reference/cpp/struct/component-testing/config-capability) |   |
| [component_testing::Dictionary](https://fuchsia.dev/reference/cpp/struct/component-testing/dictionary) |   |
| [component_testing::DictionaryRef](https://fuchsia.dev/reference/cpp/struct/component-testing/dictionary-ref) |   |
| [component_testing::Directory](https://fuchsia.dev/reference/cpp/struct/component-testing/directory) |   |
| [component_testing::FrameworkRef](https://fuchsia.dev/reference/cpp/struct/component-testing/framework-ref) |   |
| [component_testing::ParentRef](https://fuchsia.dev/reference/cpp/struct/component-testing/parent-ref) |   |
| [component_testing::Protocol](https://fuchsia.dev/reference/cpp/struct/component-testing/protocol) |   |
| [component_testing::Resolver](https://fuchsia.dev/reference/cpp/struct/component-testing/resolver) |   |
| [component_testing::Route](https://fuchsia.dev/reference/cpp/struct/component-testing/route) |   |
| [component_testing::Runner](https://fuchsia.dev/reference/cpp/struct/component-testing/runner) |   |
| [component_testing::SelfRef](https://fuchsia.dev/reference/cpp/struct/component-testing/self-ref) |   |
| [component_testing::Service](https://fuchsia.dev/reference/cpp/struct/component-testing/service) |   |
| [component_testing::Storage](https://fuchsia.dev/reference/cpp/struct/component-testing/storage) |   |
| [component_testing::VoidRef](https://fuchsia.dev/reference/cpp/struct/component-testing/void-ref) |   |

## Typedefs

### BaseRef

```c++
std::variant< ParentRef, ChildRef, FrameworkRef, VoidRef, SelfRef > BaseRef
```

### Capability

```c++
std::variant< Protocol, Service, Directory, Storage, Config, Dictionary, Resolver, Runner > Capability
```

### DependencyType

```c++
fuchsia::component::decl::DependencyType DependencyType
```

### LocalComponentFactory

```c++
fit::function< std::unique_ptr< LocalComponentImplBase >()> LocalComponentFactory
```

### LocalComponentImpl

```c++
LocalHlcppComponent LocalComponentImpl
```

### LocalComponentKind

```c++
std::variant< LocalComponentFactory > LocalComponentKind
```

### Ref

```c++
std::variant< ParentRef, ChildRef, CollectionRef, FrameworkRef, VoidRef, SelfRef, DictionaryRef > Ref
```

### StartupMode

```c++
fuchsia::component::decl::StartupMode StartupMode
```

## Functions

### ZX_REMOVED_SINCE

```c++
class component_testing::LocalComponent ZX_REMOVED_SINCE(
  1,
  9,
  17,
  "Use https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl instead."
)
```