2010-10-31 07:23:53 +00:00
|
|
|
#ifndef D_EXTENSION_MESSAGE_TEST_HELPER_H
|
|
|
|
#define D_EXTENSION_MESSAGE_TEST_HELPER_H
|
2009-11-22 15:31:47 +00:00
|
|
|
|
|
|
|
#include "MockBtMessageFactory.h"
|
|
|
|
|
|
|
|
namespace aria2 {
|
|
|
|
|
2015-12-27 09:39:47 +00:00
|
|
|
class WrapExtBtMessageFactory : public MockBtMessageFactory {
|
2009-11-22 15:31:47 +00:00
|
|
|
public:
|
2015-12-27 09:39:47 +00:00
|
|
|
virtual std::unique_ptr<BtExtendedMessage> createBtExtendedMessage(
|
|
|
|
std::unique_ptr<ExtensionMessage> extmsg) CXX11_OVERRIDE
|
2009-11-22 15:31:47 +00:00
|
|
|
{
|
2013-07-01 12:42:51 +00:00
|
|
|
return make_unique<BtExtendedMessage>(std::move(extmsg));
|
2009-11-22 15:31:47 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace aria2
|
|
|
|
|
2010-10-31 07:23:53 +00:00
|
|
|
#endif // D_EXTENSION_MESSAGE_TEST_HELPER_H
|