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 {
|
|
|
|
|
|
|
|
class WrapExtBtMessageFactory:public MockBtMessageFactory {
|
|
|
|
public:
|
2013-06-30 07:55:15 +00:00
|
|
|
virtual std::unique_ptr<BtExtendedMessage>
|
2013-07-01 12:42:51 +00:00
|
|
|
createBtExtendedMessage(std::unique_ptr<ExtensionMessage> extmsg)
|
2013-06-30 07:55:15 +00:00
|
|
|
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
|