#ifndef _D_MOCK_DHT_TASK_FACTORY_H_ #define _D_MOCK_DHT_TASK_FACTORY_H_ #include "DHTTaskFactory.h" namespace aria2 { class MockDHTTaskFactory:public DHTTaskFactory { public: virtual ~MockDHTTaskFactory() {} virtual SharedHandle createPingTask(const SharedHandle& remoteNode, size_t numRetry = 0) { return SharedHandle(); } virtual SharedHandle createGetIDTask(const SharedHandle& remoteNode, size_t numRetry = 0) { return SharedHandle(); } virtual SharedHandle createNodeLookupTask(const unsigned char* targetID) { return SharedHandle(); } virtual SharedHandle createBucketRefreshTask() { return SharedHandle(); } virtual SharedHandle createPeerLookupTask(const SharedHandle& ctx, const SharedHandle& btRuntime, const SharedHandle& peerStorage) { return SharedHandle(); } virtual SharedHandle createPeerAnnounceTask(const unsigned char* infoHash) { return SharedHandle(); } virtual SharedHandle createReplaceNodeTask(const SharedHandle& bucket, const SharedHandle& newNode) { return SharedHandle(); } }; } // namespace aria2 #endif // _D_MOCK_DHT_TASK_FACTORY_H_