blob: fd06b5ea9c659cf9a220b01c456e6cfff9ce0093 [file] [log] [blame]
// Copyright 2020 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_INPUT_LIB_HID_INPUT_REPORT_TEST_TEST_H_
#define SRC_UI_INPUT_LIB_HID_INPUT_REPORT_TEST_TEST_H_
#include <lib/fidl/llcpp/buffer_allocator.h>
namespace hid_input_report {
// This is the static size of the buffer to allocate test
// descriptors. This was chosen heuristically, a single descriptor shouldn't
// really need to be larger than this size.
static constexpr size_t kFidlDescriptorBufferSize = 4096 * 2;
using TestDescriptorAllocator = fidl::BufferAllocator<kFidlDescriptorBufferSize>;
// This is the static size of the buffer to allocate test
// reports. This was chosen heuristically, a single report shouldn't
// really need to be larger than this size.
static constexpr size_t kFidlReportBufferSize = 4096 * 2;
using TestReportAllocator = fidl::BufferAllocator<kFidlReportBufferSize>;
}
#endif // SRC_UI_INPUT_LIB_HID_INPUT_REPORT_TEST_TEST_H_