blob: d1f473027e96c214690ad18a09a9e1eb6cb6e486 [file] [log] [blame]
// Copyright 2018 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_DEVICES_TESTS_MOCK_DEVICE_FIDL_H_
#define SRC_DEVICES_TESTS_MOCK_DEVICE_FIDL_H_
#include <fidl/fuchsia.device.mock/cpp/wire.h>
#include <lib/fidl/cpp/wire/vector_view.h>
#include <lib/zx/channel.h>
#include <fbl/array.h>
namespace mock_device {
namespace device_mock = fuchsia_device_mock;
// Returns ZX_ERR_STOP if channel has been closed
// Returns ZX_OK and populates |actions_out| on success.
zx_status_t WaitForPerformActions(const zx::channel& c,
fbl::Array<device_mock::wire::Action>* actions_out);
} // namespace mock_device
#endif // SRC_DEVICES_TESTS_MOCK_DEVICE_FIDL_H_