blob: 6d4ddaf6b8e4ad177e016dec28e2da50b2d33368 [file] [log] [blame]
// Copyright 2021 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.focus;
using zx;
/// A set of focus-related data that is returned to the test for verification.
type Data = table {
/// The monotonic time (ns) the focus data was received by the client.
1: time_received zx.time;
/// The current state of focus for the client.
2: focus_status bool;
};
/// A test-specific scheme to gather signal from the client-under-test.
@discoverable
protocol ResponseListener {
/// Notify the test that client-under-test has received expected input.
Respond(struct {
focus_data Data;
});
};