/* */ #ifndef _D_MOCK_BT_MESSAGE_H_ #define _D_MOCK_BT_MESSAGE_H_ #include "BtMessage.h" namespace aria2 { class MockBtMessage : public BtMessage { private: bool sendingInProgress; bool invalidate; bool uploading; uint8_t id; public: MockBtMessage() {} virtual ~MockBtMessage() {} virtual bool isSendingInProgress() { return sendingInProgress; } void setSendingInProgress(bool flag) { this->sendingInProgress = flag; } virtual bool isInvalidate() { return invalidate; } void setInvalidate(bool flag) { this->invalidate = flag; } virtual bool isUploading() { return uploading; } void setUploading(bool flag) { this->uploading = flag; } virtual uint8_t getId() { return id; } void setId(uint8_t id) { this->id = id; } virtual void doReceivedAction() { } virtual void send() {} virtual bool validate(std::deque& errors) { return false; } virtual void handleEvent(const SharedHandle& event) {} virtual void onQueued() {} virtual std::string toString() const { return "MockBtMessage"; } }; } // namespace aria2 #endif // _D_MOCK_BT_MESSAGE_H_