blob: dcb2edb28209cc2a8e31487a3335668b98b4b260 [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 SRC_UI_LIB_ESCHER_TEST_FLIB_UTIL_H_
#define SRC_UI_LIB_ESCHER_TEST_FLIB_UTIL_H_
#include <lib/zx/event.h>
#include "src/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 // SRC_UI_LIB_ESCHER_TEST_FLIB_UTIL_H_