Gtest LLT代码实现如下:
#include <gtest/gtest.h>
class CShortestPathTestSuite : public testing::Test
{
protected:
void SetUp()
{
m_pShortestPath = new CShortestPath();
}
void TearDown()
{
if (NULL != m_pShortestPath)
{
delete m_pShortestPath;
m_pShortestPath = NULL;
}
}
CShortestPath *m_pShortestPath;
};
TEST_F(CShortestPathTestSuite, DoService)
{
}