blob: 4b2c730bf48e22d53d87d2fc403042f4ca6dd91f [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library test.componentmanager.stresstests;
/// The way for parent to conrtol lifecycle of its child in a stress test.
@discoverable
closed protocol ChildRealm {
/// Component will gracefully exit.
strict Stop();
strict StopChildren() -> ();
/// Create nested children in this realm.
/// `direct_children` - Num of direct children of this realm.
/// `tree_height` - Height of the realm tree to create.
/// Returns once all children are running.
strict CreateChildren(struct {
direct_children uint16;
tree_height uint16;
}) -> ();
/// Fired when the server is connected
strict -> OnConnected();
};