MdePkg/BaseCacheMaintenanceLibNull: Add Null instance for host testing

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2799

The services in CacheMaintenanceLib usually generate exceptions in a
unit test host application.  Provide a Null instance that can be safely
used.

This Null instance can also be used as a template for implementing
new instances of CacheMaintenanceLib.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Michael D Kinney
2020-06-05 11:01:43 -07:00
committed by mergify[bot]
parent 9af8a299ce
commit 0a81a98e90
4 changed files with 267 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// /** @file
// Null Cache Maintenance Library implementation.
//
// Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// **/
#string STR_MODULE_ABSTRACT #language en-US "Null instance of Cache Maintenance Library"
#string STR_MODULE_DESCRIPTION #language en-US "Null instance of the Cache Maintenance Library."