mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
20 lines
652 B
C++
20 lines
652 B
C++
#include "ILog.h"
|
|
#include "IIpcConfig.h"
|
|
// #include <gmock/gmock.h>
|
|
#include <gtest/gtest.h>
|
|
namespace IpcConfigTest
|
|
{
|
|
// ../output_files/test/bin/IpcConfigTest --gtest_filter=IpcConfigTest.Demo
|
|
TEST(IpcConfigTest, Demo)
|
|
{
|
|
CreateLogModule();
|
|
CreateIpcConfig();
|
|
ILogInit(LOG_INSTANCE_TYPE_END);
|
|
IIpcConfig::GetInstance()->Init();
|
|
int testNum = IIpcConfig::GetInstance()->GetInt(IpcConfigKey::TEST_NUM);
|
|
LogInfo("Get testNum = %d\n", testNum);
|
|
IIpcConfig::GetInstance()->UnInit();
|
|
ILogUnInit();
|
|
DestroyLogModule();
|
|
}
|
|
} // namespace IpcConfigTest
|