/* The constructor function caches the pointer of Boot Services Table through System Table. It will ASSERT() if the pointer of System Table is NULL. It will ASSERT() if the pointer of Boot Services Table is NULL. It will always return EFI_SUCCESS. */
EFI_STATUS EFIAPI UnitTestUefiBootServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
/* The constructor function caches the pointer of Boot Services Table through System Table. It will ASSERT() if the pointer of System Table is NULL. It will ASSERT() if the pointer of Boot Services Table is NULL. It will always return EFI_SUCCESS. */
EFI_STATUS EFIAPI UnitTestUefiBootServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
{
  gImageHandle = ImageHandle;
  ASSERT (gImageHandle != NULL);
  gST = NULL;
  gBS = SystemTable->BootServices;
  ASSERT (gBS != NULL);
  return EFI_SUCCESS;
}