struct ScopedUinputDevice

Defined at line 705 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

RAII container for a dynamically created uinput device and its associated /dev/input event node.

Automatically destroys the uinput device and waits for its event node to be removed on

destruction.

Public Members

unique_fd uinput_fd
unique_fd event_fd
basic_string event_node
set ls_before

Public Methods

void ScopedUinputDevice ()

Defined at line 711 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedUinputDevice (fbl::unique_fd uinput_fd, fbl::unique_fd event_fd, std::string event_node, std::set<std::string> ls_before)

Defined at line 712 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedUinputDevice (ScopedUinputDevice && )

Defined at line 720 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

ScopedUinputDevice & operator= (ScopedUinputDevice && )

Defined at line 721 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedUinputDevice (const ScopedUinputDevice & )

Defined at line 722 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

ScopedUinputDevice & operator= (const ScopedUinputDevice & )

Defined at line 723 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ~ScopedUinputDevice ()

Defined at line 1041 of file ../../src/starnix/tests/syscalls/cpp/test_helper.cc

std::optional<ScopedUinputDevice> Create (const char * name, uint16_t product, std::optional<int> evbit)

Defined at line 1050 of file ../../src/starnix/tests/syscalls/cpp/test_helper.cc