MockDHTMessageCallback.h 752 Bytes
Newer Older
1 2 3 4 5 6 7
#ifndef D_MOCK_DHT_MESSAGE_CALLBACK_H
#define D_MOCK_DHT_MESSAGE_CALLBACK_H

#include "DHTMessageCallback.h"

namespace aria2 {

8
class MockDHTMessageCallback : public DHTMessageCallback {
9 10 11 12 13
public:
  MockDHTMessageCallback() {}

  virtual ~MockDHTMessageCallback() {}

14
  virtual void visit(const DHTAnnouncePeerReplyMessage* message) CXX11_OVERRIDE
15 16
  {
  }
17

18
  virtual void visit(const DHTFindNodeReplyMessage* message) CXX11_OVERRIDE {}
19

20
  virtual void visit(const DHTGetPeersReplyMessage* message) CXX11_OVERRIDE {}
21

22
  virtual void visit(const DHTPingReplyMessage* message) CXX11_OVERRIDE {}
23

24 25 26 27
  virtual void
  onTimeout(const std::shared_ptr<DHTNode>& remoteNode) CXX11_OVERRIDE
  {
  }
28 29 30 31 32
};

} // namespace aria2

#endif // D_MOCK_DHT_MESSAGE_CALLBACK_H