@param Expression Boolean expression that evaluated to FALSE\r
\r
**/\r
+#if defined (EDKII_UNIT_TEST_FRAMEWORK_ENABLED)\r
+/**\r
+ Unit test library replacement for DebugAssert() in DebugLib.\r
+\r
+ If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
+ If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
+\r
+ @param FileName The pointer to the name of the source file that generated the assert condition.\r
+ @param LineNumber The line number in the source file that generated the assert condition\r
+ @param Description The pointer to the description of the assert condition.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+UnitTestDebugAssert (\r
+ IN CONST CHAR8 *FileName,\r
+ IN UINTN LineNumber,\r
+ IN CONST CHAR8 *Description\r
+ );\r
+\r
+#if defined(__clang__) && defined(__FILE_NAME__)\r
+#define _ASSERT(Expression) UnitTestDebugAssert (__FILE_NAME__, __LINE__, #Expression)\r
+#else\r
+#define _ASSERT(Expression) UnitTestDebugAssert (__FILE__, __LINE__, #Expression)\r
+#endif\r
+#else\r
#if defined(__clang__) && defined(__FILE_NAME__)\r
#define _ASSERT(Expression) DebugAssert (__FILE_NAME__, __LINE__, #Expression)\r
#else\r
#define _ASSERT(Expression) DebugAssert (__FILE__, __LINE__, #Expression)\r
#endif\r
-\r
+#endif\r
\r
/**\r
Internal worker macro that calls DebugPrint().\r