Lines Matching defs:hidraw

14 FIXTURE(hidraw) {
18 static void close_hidraw(FIXTURE_DATA(hidraw) * self)
25 FIXTURE_TEARDOWN(hidraw) {
38 FIXTURE_SETUP(hidraw)
53 TEST_F(hidraw, test_create_uhid)
59 * check that we get the same data through hidraw
61 TEST_F(hidraw, raw_event)
71 /* read the data from hidraw */
80 * After initial opening/checks of hidraw, revoke the hidraw
83 TEST_F(hidraw, raw_event_revoked)
93 /* read the data from hidraw */
102 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd");
109 /* read the data from hidraw */
113 ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while reading the hidraw node: %d",
118 * Revoke the hidraw node and check that we can not do any ioctl.
120 TEST_F(hidraw, ioctl_revoked)
126 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd");
138 TEST_F(hidraw, poll_revoked)
166 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd");
176 * After initial opening/checks of hidraw, revoke the hidraw
179 TEST_F(hidraw, write_event_revoked)
185 /* inject one event from hidraw */
197 ASSERT_EQ(err, 3) TH_LOG("unexpected error while writing to hidraw node: %d", err);
208 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd");
214 ASSERT_LT(err, 0) TH_LOG("unexpected success while writing to hidraw node: %d", err);
215 ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while writing to hidraw node: %d",
224 TEST_F(hidraw, ioctl_rdescsize)
241 TEST_F(hidraw, ioctl_rdesc)
259 TEST_F(hidraw, ioctl_rdesc_small_buffer)
278 TEST_F(hidraw, ioctl_rawinfo)
299 TEST_F(hidraw, ioctl_gfeature)
321 TEST_F(hidraw, ioctl_gfeature_invalid)
338 TEST_F(hidraw, ioctl_invalid_nr)
386 TEST_F(hidraw, ioctl_invalid_type)
406 TEST_F(hidraw, ioctl_gfeature_invalid_dir)
437 TEST_F(hidraw, ioctl_readonly_invalid_dir)
465 TEST_F(hidraw, ioctl_sfeature)
488 TEST_F(hidraw, ioctl_ginput)
510 TEST_F(hidraw, ioctl_ginput_invalid)
527 TEST_F(hidraw, ioctl_sinput)
550 TEST_F(hidraw, ioctl_goutput)
572 TEST_F(hidraw, ioctl_goutput_invalid)
589 TEST_F(hidraw, ioctl_soutput)
612 TEST_F(hidraw, ioctl_rawname)
633 TEST_F(hidraw, ioctl_rawphys)
654 TEST_F(hidraw, ioctl_rawuniq)
670 TEST_F(hidraw, ioctl_strings_small_buffer)
688 /* Note: hidraw driver doesn't guarantee null termination when buffer is too small */