#ifndef D_MOCK_BT_MESSAGE_FACTORY_H #define D_MOCK_BT_MESSAGE_FACTORY_H #include "BtMessageFactory.h" namespace aria2 { class ExtensionMessage; class MockBtMessageFactory : public BtMessageFactory { public: MockBtMessageFactory() {} virtual ~MockBtMessageFactory() {} virtual std::shared_ptr createBtMessage(const unsigned char* msg, size_t msgLength) { return std::shared_ptr(); }; virtual std::shared_ptr createHandshakeMessage(const unsigned char* msg, size_t msgLength) { return std::shared_ptr(); } virtual std::shared_ptr createHandshakeMessage(const unsigned char* infoHash, const unsigned char* peerId) { return std::shared_ptr(); } virtual std::shared_ptr createRequestMessage(const std::shared_ptr& piece, size_t blockIndex) { return std::shared_ptr(); } virtual std::shared_ptr createCancelMessage(size_t index, int32_t begin, int32_t length) { return std::shared_ptr(); } virtual std::shared_ptr createPieceMessage(size_t index, int32_t begin, int32_t length) { return std::shared_ptr(); } virtual std::shared_ptr createHaveMessage(size_t index) { return std::shared_ptr(); } virtual std::shared_ptr createChokeMessage() { return std::shared_ptr(); } virtual std::shared_ptr createUnchokeMessage() { return std::shared_ptr(); } virtual std::shared_ptr createInterestedMessage() { return std::shared_ptr(); } virtual std::shared_ptr createNotInterestedMessage() { return std::shared_ptr(); } virtual std::shared_ptr createBitfieldMessage() { return std::shared_ptr(); } virtual std::shared_ptr createKeepAliveMessage() { return std::shared_ptr(); } virtual std::shared_ptr createHaveAllMessage() { return std::shared_ptr(); } virtual std::shared_ptr createHaveNoneMessage() { return std::shared_ptr(); } virtual std::shared_ptr createRejectMessage(size_t index, int32_t begin, int32_t length) { return std::shared_ptr(); } virtual std::shared_ptr createAllowedFastMessage(size_t index) { return std::shared_ptr(); } virtual std::shared_ptr createPortMessage(uint16_t port) { return std::shared_ptr(); } virtual std::shared_ptr createBtExtendedMessage(const std::shared_ptr& extmsg) { return std::shared_ptr(); } }; } // namespace aria2 #endif // D_MOCK_BT_MESSAGE_FACTORY_H