blob: 10cf14e0503ca6f99ab00886c57aa71bdfd00b31 [file] [log] [blame] [edit]
// 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.
#include <fidl/fuchsia.paver/cpp/wire.h>
#include <lib/component/incoming/cpp/protocol.h>
#include <zxtest/zxtest.h>
namespace {
TEST(MiscSvcTest, PaverSvccEnumeratesSuccessfully) {
zx::result client_end = component::Connect<fuchsia_paver::Paver>();
ASSERT_OK(client_end);
fidl::WireSyncClient paver(std::move(client_end.value()));
zx::result endpoints = fidl::CreateEndpoints<fuchsia_paver::DataSink>();
ASSERT_OK(endpoints);
auto& [client, server] = endpoints.value();
const fidl::OneWayStatus result = paver->FindDataSink(std::move(server));
ASSERT_OK(result.status());
}
} // namespace