#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 SharedHandle createBtMessage(const unsigned char* msg, size_t msgLength) { return SharedHandle(); }; virtual SharedHandle createHandshakeMessage(const unsigned char* msg, size_t msgLength) { return SharedHandle(); } virtual SharedHandle createHandshakeMessage(const unsigned char* infoHash, const unsigned char* peerId) { return SharedHandle(); } virtual SharedHandle createRequestMessage(const SharedHandle& piece, size_t blockIndex) { return SharedHandle(); } virtual SharedHandle createCancelMessage(size_t index, uint32_t begin, size_t length) { return SharedHandle(); } virtual SharedHandle createPieceMessage(size_t index, uint32_t begin, size_t length) { return SharedHandle(); } virtual SharedHandle createHaveMessage(size_t index) { return SharedHandle(); } virtual SharedHandle createChokeMessage() { return SharedHandle(); } virtual SharedHandle createUnchokeMessage() { return SharedHandle(); } virtual SharedHandle createInterestedMessage() { return SharedHandle(); } virtual SharedHandle createNotInterestedMessage() { return SharedHandle(); } virtual SharedHandle createBitfieldMessage() { return SharedHandle(); } virtual SharedHandle createKeepAliveMessage() { return SharedHandle(); } virtual SharedHandle createHaveAllMessage() { return SharedHandle(); } virtual SharedHandle createHaveNoneMessage() { return SharedHandle(); } virtual SharedHandle createRejectMessage(size_t index, uint32_t begin, size_t length) { return SharedHandle(); } virtual SharedHandle createAllowedFastMessage(size_t index) { return SharedHandle(); } virtual SharedHandle createPortMessage(uint16_t port) { return SharedHandle(); } virtual SharedHandle createBtExtendedMessage(const SharedHandle& extmsg) { return SharedHandle(); } }; } // namespace aria2 #endif // _D_MOCK_BT_MESSAGE_FACTORY_H_