blob: 4d6c13736eb8ba498f71b09ac5f2930d3b9c077c [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.
#include <lib/async-loop/cpp/loop.h>
#include <lib/fdio/fd.h>
#include <lib/vfs/cpp/pseudo_dir.h>
#include <gtest/gtest.h>
namespace accessibility_test {
constexpr int kMaxLogBufferSize = 1024;
// Utility function to read a file with a vfs::internal::Node.
char *ReadFile(vfs::internal::Node *node, int length, char *buffer);
// Helper function for ReadFile() to Open a File Descriptor.
int OpenAsFD(vfs::internal::Node *node, async_dispatcher_t *dispatcher);
} // namespace accessibility_test