22 lines
496 B
C++
22 lines
496 B
C++
|
|
#include "ILog.h"
|
|
#include "IHal.h"
|
|
#include <gmock/gmock.h>
|
|
#include <gtest/gtest.h>
|
|
namespace IHalTest
|
|
{
|
|
// ../output_files/test/bin/IHalTest --gtest_filter=IHalTest.Demo
|
|
TEST(IHalTest, Demo)
|
|
{
|
|
ILogInit(LOG_EASYLOGGING);
|
|
create_hal_module();
|
|
StatusCode code = IHalInit();
|
|
if (IsCodeOK(code))
|
|
{
|
|
PrintStringCode(code);
|
|
}
|
|
IHalUnInit();
|
|
destroy_hal_module();
|
|
ILogUnInit();
|
|
}
|
|
} |