blob: a36214d98bbb63b48268d84e62a88f98b1650185 [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.
use {fidl_fidl_test_components as ftest, fuchsia_async as fasync, fuchsia_component::client};
#[fasync::run_singlethreaded(test)]
async fn custom_resolved_component_serves_protocol() {
let trigger = client::connect_to_service::<ftest::TriggerMarker>()
.expect("failed to open trigger service");
let out = trigger.run().await.expect("trigger failed");
assert_eq!(out, "Triggered");
}