#ifndef _D_MOCK_EXTENSION_MESSAGE_FACTORY_H_ #define _D_MOCK_EXTENSION_MESSAGE_FACTORY_H_ #include "ExtensionMessageFactory.h" #include "MockExtensionMessage.h" class MockExtensionMessageFactory:public ExtensionMessageFactory { public: virtual ~MockExtensionMessageFactory() {} virtual ExtensionMessageHandle createMessage(const char* data, size_t length) { return new MockExtensionMessage("a2_mock", *data, data+1, length-1); } }; typedef SharedHandle MockExtensionMessageFactoryHandle; #endif // _D_MOCK_EXTENSION_MESSAGE_FACTORY_H_