mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 19:11:47 +00:00
28 lines
663 B
C++
28 lines
663 B
C++
#ifndef D_MOCK_DHT_MESSAGE_CALLBACK_H
|
|
#define D_MOCK_DHT_MESSAGE_CALLBACK_H
|
|
|
|
#include "DHTMessageCallback.h"
|
|
|
|
namespace aria2 {
|
|
|
|
class MockDHTMessageCallback:public DHTMessageCallback {
|
|
public:
|
|
MockDHTMessageCallback() {}
|
|
|
|
virtual ~MockDHTMessageCallback() {}
|
|
|
|
virtual void visit(const DHTAnnouncePeerReplyMessage* message) {}
|
|
|
|
virtual void visit(const DHTFindNodeReplyMessage* message) {}
|
|
|
|
virtual void visit(const DHTGetPeersReplyMessage* message) {}
|
|
|
|
virtual void visit(const DHTPingReplyMessage* message) {}
|
|
|
|
virtual void onTimeout(const std::shared_ptr<DHTNode>& remoteNode) {}
|
|
};
|
|
|
|
} // namespace aria2
|
|
|
|
#endif // D_MOCK_DHT_MESSAGE_CALLBACK_H
|