class MockBootServices
Defined at line 180 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
Subclasses StubBootServices to mock out methods using gmock.
This will likely be the most common way to test boot services, but gmock
is significantly more complicated than gtest and some projects may prefer
to avoid it, so the base class is still available for direct use.
Public Members
FunctionMocker gmock05_GetMemoryMap_185
FunctionMocker gmock05_CreateEvent_189
FunctionMocker gmock03_SetTimer_191
FunctionMocker gmock01_CloseEvent_192
FunctionMocker gmock01_CheckEvent_193
FunctionMocker gmock05_LocateHandle_198
FunctionMocker gmock06_OpenProtocol_202
FunctionMocker gmock04_CloseProtocol_206
FunctionMocker gmock05_LocateHandleBuffer_210
FunctionMocker gmock03_LocateProtocol_212
Public Methods
void ExpectOpenProtocol (efi_handle handle, efi_guid guid, void * protocol)
Registers expectations for protocol opening or closing only.
Used less commonly, in cases like helper functions opening a protocol
but then returning it to the caller rather than closing it.
Defined at line 119 of file ../../zircon/kernel/lib/efi/testing/stub_boot_services.cc
void ExpectCloseProtocol (efi_handle handle, efi_guid guid)
Defined at line 124 of file ../../zircon/kernel/lib/efi/testing/stub_boot_services.cc
void SetDefaultProtocol (efi_handle handle, efi_guid guid, void * protocol)
Similar to ExpectProtocol(), but instead of using EXPECT_CALL to ensure
that the protocol is opened and closed, just registers some default
behavior using ON_CALL/WillByDefault.
This is more useful if you want to inject a test protocol, but don't care
how many times it's opened or closed.
Defined at line 128 of file ../../zircon/kernel/lib/efi/testing/stub_boot_services.cc
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::Result GetMemoryMap (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<2>::type gmock_a2, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<3>::type gmock_a3, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<4>::type gmock_a4)
Defined at line 182 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)> gmock_GetMemoryMap (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<2>::type> & gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<3>::type> & gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)>::template Arg<4>::type> & gmock_a4)
Defined at line 182 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)> gmock_GetMemoryMap (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (size_t *, efi_memory_descriptor *, size_t *, size_t *, uint32_t *)> * )
Defined at line 182 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::Result CreateEvent (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<2>::type gmock_a2, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<3>::type gmock_a3, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<4>::type gmock_a4)
Defined at line 186 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)> gmock_CreateEvent (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<2>::type> & gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<3>::type> & gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)>::template Arg<4>::type> & gmock_a4)
Defined at line 186 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)> gmock_CreateEvent (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (uint32_t, efi_tpl, efi_event_notify, void *, efi_event *)> * )
Defined at line 186 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)>::Result SetTimer (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)>::template Arg<2>::type gmock_a2)
Defined at line 190 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)> gmock_SetTimer (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)>::template Arg<2>::type> & gmock_a2)
Defined at line 190 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)> gmock_SetTimer (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event, efi_timer_delay, uint64_t)> * )
Defined at line 190 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)>::Result CloseEvent (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)>::template Arg<0>::type gmock_a0)
Defined at line 192 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_event)> gmock_CloseEvent (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)>::template Arg<0>::type> & gmock_a0)
Defined at line 192 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_event)> gmock_CloseEvent (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)> * )
Defined at line 192 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)>::Result CheckEvent (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)>::template Arg<0>::type gmock_a0)
Defined at line 193 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_event)> gmock_CheckEvent (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)>::template Arg<0>::type> & gmock_a0)
Defined at line 193 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_event)> gmock_CheckEvent (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_event)> * )
Defined at line 193 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::Result LocateHandle (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<2>::type gmock_a2, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<3>::type gmock_a3, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<4>::type gmock_a4)
Defined at line 195 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)> gmock_LocateHandle (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)> * )
Defined at line 195 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)> gmock_LocateHandle (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<2>::type> & gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<3>::type> & gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle *)>::template Arg<4>::type> & gmock_a4)
Defined at line 195 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::Result OpenProtocol (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<2>::type gmock_a2, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<3>::type gmock_a3, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<4>::type gmock_a4, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<5>::type gmock_a5)
Defined at line 199 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)> gmock_OpenProtocol (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)> * )
Defined at line 199 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)> gmock_OpenProtocol (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<2>::type> & gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<3>::type> & gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<4>::type> & gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, void **, efi_handle, efi_handle, uint32_t)>::template Arg<5>::type> & gmock_a5)
Defined at line 199 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::Result CloseProtocol (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<2>::type gmock_a2, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<3>::type gmock_a3)
Defined at line 203 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)> gmock_CloseProtocol (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<2>::type> & gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)>::template Arg<3>::type> & gmock_a3)
Defined at line 203 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)> gmock_CloseProtocol (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_handle, const efi_guid *, efi_handle, efi_handle)> * )
Defined at line 203 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::Result LocateHandleBuffer (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<2>::type gmock_a2, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<3>::type gmock_a3, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<4>::type gmock_a4)
Defined at line 207 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)> gmock_LocateHandleBuffer (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<2>::type> & gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<3>::type> & gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)>::template Arg<4>::type> & gmock_a4)
Defined at line 207 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)> gmock_LocateHandleBuffer (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (efi_locate_search_type, const efi_guid *, void *, size_t *, efi_handle **)> * )
Defined at line 207 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)>::Result LocateProtocol (typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)>::template Arg<0>::type gmock_a0, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)>::template Arg<1>::type gmock_a1, typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)>::template Arg<2>::type gmock_a2)
Defined at line 211 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)> gmock_LocateProtocol (const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)>::template Arg<0>::type> & gmock_a0, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)>::template Arg<1>::type> & gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)>::template Arg<2>::type> & gmock_a2)
Defined at line 211 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
::testing::MockSpec< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)> gmock_LocateProtocol (const ::testing::internal::WithoutMatchers & , ::testing::internal::Function< ::testing::internal::identity_t<efi_status> (const efi_guid *, void *, void **)> * )
Defined at line 211 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h
void ExpectProtocol (efi_handle handle, efi_guid guid, void * protocol)
Registers an expectation for protocol opening and closing.
This sets up gmock expectations for the most common case, where a protocol
is successfully opened and closed. See below for variants than open or
close only.
Currently |agent_handle|, |controller_handle|, and |attributes| parameters
to OpenProtocol()/CloseProtocol() are not checked and can be anything.
handle: expected handle.
guid: expected protocol GUID.
protocol: the protocol table to copy out from OpenProtocol().
Defined at line 226 of file ../../zircon/kernel/lib/efi/testing/include/lib/efi/testing/stub_boot_services.h