class InputReceiverTest

Defined at line 21 of file ../../src/firmware/gigaboot/cpp/tests/input_test.cc

Test fixture to set up and tear down InputReceiver test state.

Protected Members

efi_system_table system_table_
MockBootServices mock_services_
MockSerialIoProtocol mock_serial_
MockSimpleTextInputProtocol mock_input_
MockSimpleTextOutputProtocol mock_output_
char event_payload_

Public Methods

void TearDown ()

Reset xefi global variables so state doesn't bleed between tests.

Defined at line 24 of file ../../src/firmware/gigaboot/cpp/tests/input_test.cc

void SetupXefi (efi::MockBootServices & mock_services, efi_serial_io_protocol * serial, efi_simple_text_input_protocol * text_input, efi_simple_text_output_protocol * text_output)

Sets up the state and mock expectations for a future call to xefi_init().

Defined at line 31 of file ../../src/firmware/gigaboot/cpp/tests/input_test.cc

InputReceiver::Serial & serial (InputReceiver & r)

Defined at line 57 of file ../../src/firmware/gigaboot/cpp/tests/input_test.cc