class MockSerialIoProtocol

Defined at line 19 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

gmock wrapper for efi_serial_io_protocol.

Public Members

FunctionMocker gmock00_Reset_30
FunctionMocker gmock06_SetAttributes_33
FunctionMocker gmock01_SetControl_34
FunctionMocker gmock01_GetControl_35
FunctionMocker gmock02_Write_36
FunctionMocker gmock02_Read_37

Public Methods

void MockSerialIoProtocol ()

Defined at line 21 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> ()>::Result Reset ()

Defined at line 30 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> ()> gmock_Reset ()

Defined at line 30 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> ()> gmock_Reset (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> ()> * )

Defined at line 30 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::Result SetAttributes (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<2>::type gmock_a2, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<3>::type gmock_a3, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<4>::type gmock_a4, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<5>::type gmock_a5)

Defined at line 31 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)> gmock_SetAttributes (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<2>::type> & gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<3>::type> & gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<4>::type> & gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)>::template Arg<5>::type> & gmock_a5)

Defined at line 31 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)> gmock_SetAttributes (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint64_t, uint32_t, uint32_t, efi_parity_type, uint8_t, efi_stop_bits_type)> * )

Defined at line 31 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t)>::Result SetControl (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t)>::template Arg<0>::type gmock_a0)

Defined at line 34 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint32_t)> gmock_SetControl (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t)>::template Arg<0>::type> & gmock_a0)

Defined at line 34 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint32_t)> gmock_SetControl (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t)> * )

Defined at line 34 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t *)>::Result GetControl (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t *)>::template Arg<0>::type gmock_a0)

Defined at line 35 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint32_t *)> gmock_GetControl (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t *)>::template Arg<0>::type> & gmock_a0)

Defined at line 35 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint32_t *)> gmock_GetControl (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t *)> * )

Defined at line 35 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::Result Write (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<1>::type gmock_a1)

Defined at line 36 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (size_t *, void *)> gmock_Write (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<1>::type> & gmock_a1)

Defined at line 36 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (size_t *, void *)> gmock_Write (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)> * )

Defined at line 36 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::Result Read (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<1>::type gmock_a1)

Defined at line 37 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (size_t *, void *)> gmock_Read (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)>::template Arg<1>::type> & gmock_a1)

Defined at line 37 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

::testing::MockSpec< ::testing::internal::identity_t<efi_status> (size_t *, void *)> gmock_Read (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, void *)> * )

Defined at line 37 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h

void ExpectRead (const std::string & input)

Sets up expectations for Read() to return the given chars.

|input| gets saved internally so does not need to be kept alive.

Defined at line 41 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/mock_serial_io.h