|
|
@@ -167,11 +167,14 @@ public:
|
|
|
template<class TReq, class TAns>
|
|
|
struct MethodTestCaseT : public SpReqAnsContext<TReq, TAns>, public IMethodTestCase
|
|
|
{
|
|
|
+
|
|
|
+ using Pointer = CSmartPointer<SpReqAnsContext<TReq, TAns> >;
|
|
|
+
|
|
|
/*Prototype of Test Case Function*/
|
|
|
- typedef ErrorCodeEnum(T::* ToTestFuncProto)(SpReqAnsContext<TReq, TAns>::Pointer ctx);
|
|
|
+ typedef ErrorCodeEnum(T::* ToTestFuncProto)(Pointer ctx);
|
|
|
|
|
|
MethodTestCaseT(CEntityBase* ent, ToTestFuncProto testFunc)
|
|
|
- :SpReqAnsContext(m_spMockTransactionContext),m_enti(ent), m_testFunc(testFunc)
|
|
|
+ :SpReqAnsContext<TReq, TAns>(m_spMockTransactionContext),m_enti(ent), m_testFunc(testFunc)
|
|
|
,m_errorCode(Error_IgnoreAll),m_dwUserCode(0)
|
|
|
{ }
|
|
|
|