blob: 9ceb81fd25a6c7298e78299625e03f86936a5560 [file] [log] [blame]
// Copyright 2017 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 LIB_ESCHER_TEST_FLIB_UTIL_H_
#define LIB_ESCHER_TEST_FLIB_UTIL_H_
#include <lib/zx/event.h>
#include "lib/fxl/time/time_delta.h"
namespace escher {
namespace test {
// Synchronously checks whether the event has signalled any of the bits in
// |signal|.
bool IsEventSignalled(const zx::event& event, zx_signals_t signal);
// Create a duplicate of the event.
zx::event CopyEvent(const zx::event& event);
} // namespace test
} // namespace escher
#endif // LIB_ESCHER_TEST_FLIB_UTIL_H_