#include <stdint.h>
#include "build/build_config.h"
#include "services/device/hid/hid_device_info.h"
#include "services/device/public/cpp/hid/hid_device_filter.h"
#include "services/device/public/cpp/test/test_report_descriptors.h"
#include "services/device/public/mojom/hid.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
namespace {
#if BUILDFLAG(IS_MAC)
const uint64_t kTestDeviceId = 42;
#elif BUILDFLAG(IS_WIN)
const wchar_t* kTestDeviceId = L"device1";
#else
const char* kTestDeviceId = …;
#endif
}
class HidFilterTest : public testing::Test { … };
TEST_F(HidFilterTest, MatchAny) { … }
TEST_F(HidFilterTest, MatchVendorId) { … }
TEST_F(HidFilterTest, MatchVendorIdNegative) { … }
TEST_F(HidFilterTest, MatchProductId) { … }
TEST_F(HidFilterTest, MatchProductIdNegative) { … }
TEST_F(HidFilterTest, MatchUsagePage) { … }
TEST_F(HidFilterTest, MatchUsagePageNegative) { … }
TEST_F(HidFilterTest, MatchVendorAndUsagePage) { … }
TEST_F(HidFilterTest, MatchUsageAndPage) { … }
TEST_F(HidFilterTest, MatchUsageAndPageNegative) { … }
TEST_F(HidFilterTest, MatchEmptyFilterListNegative) { … }
TEST_F(HidFilterTest, MatchFilterList) { … }
TEST_F(HidFilterTest, MatchFilterListNegative) { … }
}