#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 std::shared_ptr createPingTask(const std::shared_ptr& remoteNode, int numRetry = 0) { return std::shared_ptr(); } virtual std::shared_ptr createNodeLookupTask(const unsigned char* targetID) { return std::shared_ptr(); } virtual std::shared_ptr createBucketRefreshTask() { return std::shared_ptr(); } virtual std::shared_ptr createPeerLookupTask(const std::shared_ptr& ctx, uint16_t tcpPort, const std::shared_ptr& peerStorage) { return std::shared_ptr(); } virtual std::shared_ptr createPeerAnnounceTask(const unsigned char* infoHash) { return std::shared_ptr(); } virtual std::shared_ptr createReplaceNodeTask(const std::shared_ptr& bucket, const std::shared_ptr& newNode) { return std::shared_ptr(); } }; } // namespace aria2 #endif // D_MOCK_DHT_TASK_FACTORY_H