blob: 49b24839c07f4e71a3e06c1cdf9a9d342d4f9c22 [file] [log] [blame]
// 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.
#ifndef USB_VIRTUAL_BUS_LAUNCHER_HELPER_USB_VIRTUAL_BUS_LAUNCHER_HELPER_H_
#define USB_VIRTUAL_BUS_LAUNCHER_HELPER_USB_VIRTUAL_BUS_LAUNCHER_HELPER_H_
#include <zircon/types.h>
#include <zxtest/zxtest.h>
namespace usb_virtual_bus {
template <typename T>
void ValidateResult(const T& result) {
ASSERT_OK(result.status());
ASSERT_OK(result->status);
}
zx_status_t WaitForAnyFile(int dirfd, int event, const char* name, void* cookie);
zx_status_t WaitForFile(int dirfd, int event, const char* fn, void* name);
} // namespace usb_virtual_bus
#endif // USB_VIRTUAL_BUS_LAUNCHER_HELPER_USB_VIRTUAL_BUS_LAUNCHER_HELPER_H_