SecurityPkg: Add gmock example
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Signed-off-by: Chris Johnson <chris.n.johnson@intel.com> Acked-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Oliver Smith-Denny <osde@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
1a24843ecb
commit
c28c16e7c4
@@ -0,0 +1,28 @@
|
||||
/** @file
|
||||
Google Test mocks for PlatformPKProtectionLib
|
||||
|
||||
Copyright (c) 2022, Intel Corporation. All rights reserved.
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
#ifndef MOCK_PLATFORM_PK_PROTECTION_LIB_H_
|
||||
#define MOCK_PLATFORM_PK_PROTECTION_LIB_H_
|
||||
|
||||
#include <Library/GoogleTestLib.h>
|
||||
#include <Library/FunctionMockLib.h>
|
||||
extern "C" {
|
||||
#include <Uefi.h>
|
||||
#include <Library/PlatformPKProtectionLib.h>
|
||||
}
|
||||
|
||||
struct MockPlatformPKProtectionLib {
|
||||
MOCK_INTERFACE_DECLARATION (MockPlatformPKProtectionLib);
|
||||
|
||||
MOCK_FUNCTION_DECLARATION (
|
||||
EFI_STATUS,
|
||||
DisablePKProtection,
|
||||
()
|
||||
);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user