18 lines
512 B
C++
18 lines
512 B
C++
#include "ILog.h"
|
|
#include "Config.h"
|
|
// #include <gmock/gmock.h>
|
|
#include <gtest/gtest.h>
|
|
namespace ConfigTest
|
|
{
|
|
// ../output_files/test/bin/ConfigTest --gtest_filter=ConfigTest.Demo
|
|
TEST(ConfigTest, Demo)
|
|
{
|
|
CreateLogModule();
|
|
ILogInit(LOG_INSTANCE_TYPE_END);
|
|
VConfig *config = OpenConfigFile("./config");
|
|
int value = 0;
|
|
ConfigGetInt(config, "number", &value);
|
|
ILogUnInit();
|
|
DestroyLogModule();
|
|
}
|
|
} // namespace ConfigTest
|