#ifndef _D_MOCK_DHT_TASK_H_ #define _D_MOCK_DHT_TASK_H_ #include "DHTTask.h" #include "DHTNode.h" #include "DHTConstants.h" #include namespace aria2 { class MockDHTTask:public DHTTask { public: SharedHandle remoteNode_; unsigned char targetID_[DHT_ID_LENGTH]; MockDHTTask(const SharedHandle& remoteNode):remoteNode_(remoteNode) {} virtual ~MockDHTTask() {} virtual void startup() {} virtual bool finished() { return false; } void setTargetID(const unsigned char* targetID) { memcpy(targetID_, targetID, DHT_ID_LENGTH); } }; } // namespace aria2 #endif // _D_MOCK_DHT_TASK_H_