| // 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 SRC_UI_A11Y_TESTS_UTIL_UTIL_H_ |
| #define SRC_UI_A11Y_TESTS_UTIL_UTIL_H_ |
| |
| #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 |
| |
| #endif // SRC_UI_A11Y_TESTS_UTIL_UTIL_H_ |