blob: c25f8e653f9f73bc5faa82745576fa4aea6ea715 [file] [log] [blame]
// Copyright 2025 The Fuchsia Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_STARNIX_TESTS_SYSCALLS_CPP_BINDER_PROVIDER_H_
#define SRC_STARNIX_TESTS_SYSCALLS_CPP_BINDER_PROVIDER_H_
#include <lib/fit/defer.h>
#include <lib/fit/function.h>
#include "src/starnix/tests/syscalls/cpp/test_helper.h"
namespace starnix_binder {
fit::deferred_action<fit::closure> ProviderProcess(
std::string_view binder_dir,
fit::function<pid_t(test_helper::ForkHelper&, fit::closure)> spawn_provider,
test_helper::Poker ready,
fit::function<void(std::string_view)> validate_client_secctx_seen_by_provider);
} // namespace starnix_binder
#endif // SRC_STARNIX_TESTS_SYSCALLS_CPP_BINDER_PROVIDER_H_