mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
17 lines
477 B
C++
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
|