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 "MockBtMessage.h"
|
|
|
|
#include "MockBtMessageFactory.h"
|
|
|
|
|
|
|
|
namespace aria2 {
|
|
|
|
|
|
|
|
typedef WrapBtMessage<ExtensionMessage> WrapExtBtMessage;
|
|
|
|
|
|
|
|
class WrapExtBtMessageFactory:public MockBtMessageFactory {
|
|
|
|
public:
|
|
|
|
virtual SharedHandle<BtMessage>
|
|
|
|
createBtExtendedMessage(const SharedHandle<ExtensionMessage>& extmsg)
|
|
|
|
{
|
|
|
|
return SharedHandle<BtMessage>(new WrapExtBtMessage(extmsg));
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace aria2
|
|
|
|
|
2010-10-31 07:23:53 +00:00
|
|
|
#endif // D_EXTENSION_MESSAGE_TEST_HELPER_H
|