#ifndef D_MOCK_BT_MESSAGE_FACTORY_H #define D_MOCK_BT_MESSAGE_FACTORY_H #include "BtMessageFactory.h" #include "BtHandshakeMessage.h" #include "BtRequestMessage.h" #include "BtCancelMessage.h" #include "BtPieceMessage.h" #include "BtHaveMessage.h" #include "BtChokeMessage.h" #include "BtUnchokeMessage.h" #include "BtInterestedMessage.h" #include "BtNotInterestedMessage.h" #include "BtBitfieldMessage.h" #include "BtKeepAliveMessage.h" #include "BtHaveAllMessage.h" #include "BtHaveNoneMessage.h" #include "BtRejectMessage.h" #include "BtAllowedFastMessage.h" #include "BtPortMessage.h" #include "BtExtendedMessage.h" #include "ExtensionMessage.h" namespace aria2 { class ExtensionMessage; class MockBtMessageFactory : public BtMessageFactory { public: MockBtMessageFactory() {} virtual ~MockBtMessageFactory() {} virtual std::unique_ptr createBtMessage(const unsigned char* msg, size_t msgLength) CXX11_OVERRIDE { return nullptr; }; virtual std::unique_ptr createHandshakeMessage(const unsigned char* msg, size_t msgLength) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createHandshakeMessage(const unsigned char* infoHash, const unsigned char* peerId) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createRequestMessage(const std::shared_ptr& piece, size_t blockIndex) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createCancelMessage(size_t index, int32_t begin, int32_t length) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createPieceMessage(size_t index, int32_t begin, int32_t length) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createHaveMessage(size_t index) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createChokeMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createUnchokeMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createInterestedMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createNotInterestedMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createBitfieldMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createKeepAliveMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createHaveAllMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createHaveNoneMessage() CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createRejectMessage(size_t index, int32_t begin, int32_t length) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createAllowedFastMessage (size_t index) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createPortMessage(uint16_t port) CXX11_OVERRIDE { return nullptr; } virtual std::unique_ptr createBtExtendedMessage(std::unique_ptr extmsg) CXX11_OVERRIDE { return nullptr; } }; } // namespace aria2 #endif // D_MOCK_BT_MESSAGE_FACTORY_H