#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, uint16_t tcpPort, 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