chromium/services/device/hid/hid_service_linux_unittest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "services/device/hid/hid_service_linux.h"

#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "device/udev_linux/fake_udev_loader.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace device {

namespace {

constexpr char kSubsystemBluetooth[] =;
constexpr char kSubsystemHid[] =;
constexpr char kSubsystemHidraw[] =;
constexpr char kSubsystemMisc[] =;
constexpr char kSubsystemUsb[] =;

constexpr char kDevnodeHidraw0[] =;

constexpr char kDevtypeUsbDevice[] =;
constexpr char kDevtypeUsbInterface[] =;
constexpr char kDevtypeLink[] =;

constexpr char kPropertyValueHidName[] =;

class HidServiceLinuxTest : public testing::Test {};

}  // namespace

TEST_F(HidServiceLinuxTest, EnumerateUsbHidDevice) {}

TEST_F(HidServiceLinuxTest, EnumerateBluetoothClassicHidDevice) {}

TEST_F(HidServiceLinuxTest, EnumerateBleHidDevice) {}

}  // namespace device