mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
20 lines
427 B
C++
20 lines
427 B
C++
#include "iLog.h"
|
|
|
|
#include <gmock/gmock.h>
|
|
#include <gtest/gtest.h>
|
|
namespace LogCTest
|
|
{
|
|
// ../output_files/test/bin/LogCTest --gtest_filter=LogCTest.Demo
|
|
TEST(LogCTest, Demo)
|
|
{
|
|
create_log_module();
|
|
i_log_init();
|
|
|
|
LogInfo("hello world.");
|
|
LogError("create ... failed.");
|
|
LogDebug("a = %d b = %s", 124, "apple");
|
|
|
|
i_log_unInit();
|
|
destroy_log_module();
|
|
}
|
|
} |