我是新的單元測試有人可以告訴我這個測試類是在下面的代碼中定義的,我怎樣才能找到它?幫助單元測試
#ifndef UT_USERSESSIONMANAGER_
#def UT_USERSESSIONMANAGER_
#include<gmock/gmock-genral.h> //If define in this then how can i find it
#include<"pre_include.hpp"> //I am sure not define in this
#include<"pre_usersession.hpp">//I am sure not define in this
using namespace pre;
class Ut_UserSessionManager:public::testing::test
{
public:
Pre_UserSessionManager *UserSessionFailure;
Pre_UserSessionManager *UserSessionSuccess;
public:
virtual void Setup();
virtual void TearDown();
}
要麼使用'「」'或'<>'但不博在你的包括。 – 2010-08-03 07:58:24
這應該是'#define'而不是'#def'。 – 2010-08-03 09:50:24