Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
VivianNK committed Sep 9, 2024
1 parent 7bef2d7 commit d5acff2
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
**/

#include <Library/GoogleTestLib.h>
// #include <Library/FunctionMockLib.h>
// #include <GoogleTest/Library/MockMemoryAllocationLib.h>
// #include <GoogleTest/Protocol/MockAdvancedLogger.h>
#include <Library/FunctionMockLib.h>
#include <GoogleTest/Library/MockMemoryAllocationLib.h>
#include <GoogleTest/Protocol/MockAdvancedLogger.h>
#include <GoogleTest/Library/MockHobLib.h>

extern "C" {
#include <Uefi.h> // should include basetype and base
Expand All @@ -19,16 +20,15 @@ extern "C" {
#include <AdvancedLoggerInternal.h>
#include <Protocol/AdvancedLogger.h>
#include <Guid/AdvancedLoggerPreDxeLogs.h>
#include <Protocol/VariablePolicy.h> // to mock
#include <Protocol/VariablePolicy.h> // to mock (MU_BASECORE MdeModulePkg)
#include <AdvancedLoggerInternalProtocol.h>

#include <Library/AdvancedLoggerHdwPortLib.h> // to mock
#include <Library/BaseMemoryLib.h> // to mock
//#include <Library/HobLib.h> // to mock
#include <Library/PcdLib.h> // to mock
#include <Library/SynchronizationLib.h> // to mock
#include <Library/TimerLib.h> // to mock
#include <Library/VariablePolicyHelperLib.h> // to mock
#include <Library/AdvancedLoggerHdwPortLib.h> // to mock (MU_PLUS)
#include <Library/BaseMemoryLib.h> // to mock (MU_BASECORE MdePkg)
#include <Library/PcdLib.h> // to mock OR NULL lib ok? (MU_BASECORE MdePkg)
#include <Library/SynchronizationLib.h> // to mock (MU_BASECORE MdePkg)
#include <Library/TimerLib.h> // to mock (MU_BASECORE MdePkg)
#include <Library/VariablePolicyHelperLib.h> // to mock (MU_BASECORE MdeModulePkg)

#include "../../AdvancedLoggerCommon.h"

Expand Down Expand Up @@ -118,12 +118,12 @@ TEST_F (AdvancedLoggerDxeCoreTest, AdvLoggerGetInfoFail) {
EXPECT_EQ (status, FALSE);
}

/* TODO need to mock PCD library, and more
/* TODO need to mock PCD library, and more */
// Test AdvancedLoggerGetLoggerInfo
TEST_F (AdvancedLoggerDxeCoreTest, AdvLoggerGetInfoSuccess) {
loggerInfo = AdvancedLoggerGetLoggerInfo ();
//loggerInfo = AdvancedLoggerGetLoggerInfo ();
}
*/


/* TODO need to test AdvancedLoggerGetLoggerInfo
// Test DxeCore Advanced Logger initialization
Expand Down

0 comments on commit d5acff2

Please sign in to comment.