hunting/test/utils/Log/src/ILogTest.cpp

19 lines
473 B
C++

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