blob: e9b3aeed4d24e56ef6d2683c65c155025393e60f [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 fidl.test.llcpp.controlflow;
/// Interface for testing shutdown/epitaphs etc.
@for_deprecated_c_bindings
protocol ControlFlow {
/// Shutdown the server without a reply.
/// The server should unbind the channel from the dispatch loop, closing it.
Shutdown();
/// Calling this method generates no reply and a epitaph with error set to
/// `ZX_ERR_ACCESS_DENIED`. The channel will then be closed.
/// This tests sending an epitaph from the one-way method call handler.
NoReplyMustSendAccessDeniedEpitaph();
/// Despite the fact that a reply was defined in the method signature,
/// Calling this method generates no reply and a epitaph with error set to
/// `ZX_ERR_ACCESS_DENIED`. The channel will then be closed.
/// This tests sending an epitaph from a normal (two-way) method call handler.
MustSendAccessDeniedEpitaph() -> (struct {
reply int32;
});
};