blob: 47c71b2fab337e2892a01dcce69d08c173ec4e08 [file] [log] [blame]
// Copyright 2019 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 fuchsia.test.hub;
using fuchsia.io;
/// The maximum number of entries to report within a directory in tests.
/// This capacity is currently set somewhat arbitrarily.
const MAX_NUM_ENTRIES uint64 = 100;
/// A protocol used in testing by a component instance to propagate its view of
/// hub directory to the integration test.
@discoverable
protocol HubReport {
/// Returns a list of the entiries within the directories specified by the
/// provided path.
ListDirectory(struct {
path string:fuchsia.io.MAX_PATH;
entries vector<string:fuchsia.io.MAX_FILENAME>:MAX_NUM_ENTRIES;
}) -> ();
/// Returns the content of the file specified by the provided path.
ReportFileContent(struct {
path string:fuchsia.io.MAX_PATH;
content string:fuchsia.io.MAX_BUF;
}) -> ();
};