embedded-framework/test/utils/Log/src/ILogTest.cpp
2023-09-10 07:15:05 -07:00

17 lines
477 B
C++

#include "ILog.h"
// #include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace ILogTest
{
// ../output_files/test/bin/LogTest --gtest_filter=ILogTest.Demo
TEST(ILogTest, Demo)
{
CreateLogModule();
ILogInit(LOG_INSTANCE_TYPE_END);
LogInfo("hello world.");
LogError("create ... failed.");
LogDebug("a = %d b = %s", 124, "apple");
ILogUnInit();
DestroyLogModule();
}
} // namespace ILogTest