JD2022-TU1/main/unittests/gameplay/Managers/DataProviders/DataProvider_Testable.h

20 lines
No EOL
633 B
C++

#ifndef ITF_DATAPROVIDER_TESTABLE
#define ITF_DATAPROVIDER_TESTABLE
#include "precompiled_unittests_gameplay.h"
#include "gameplay/Managers/DataProviders/DataProvider.h"
namespace ITF
{
class DataProvider_Testable: public DataProvider
{
public:
DataProvider_Testable(): DataProvider(), m_refreshDataDescForTest(NULL){}
virtual void refreshDataDescriptor(DataDesc* _desc) override {m_refreshDataDescForTest = _desc;};
DataDesc* m_refreshDataDescForTest;
using DataProvider::addDataDescriptor;
using DataProvider::getDataDescriptor;
};
}
#endif // ITF_DATAPROVIDER_TESTABLE