blob: 23546383b63e5421ab148f42ec3b1a264ff4159b [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.time;
using fuchsia.time.external;
/// A control protocol implemented by a test component. During an integration test, Timekeeper
/// launches and establishes a time source channel to the dev time source. This protocol allows
/// the dev time source to pass a channel to delegate the implementation of the connection to the
/// test component.
@discoverable
protocol TimeSourceControl {
/// Forward a PushSource connection.
/// TODO(satsukiu): possibly add an enum signifying the role (primary, monitor) of the
/// connecting PushSource.
ConnectPushSource(resource struct {
push_source server_end:fuchsia.time.external.PushSource;
});
};