diff options
Diffstat (limited to 'libmysqlpp/embeddedmy-mock.h')
-rw-r--r-- | libmysqlpp/embeddedmy-mock.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libmysqlpp/embeddedmy-mock.h b/libmysqlpp/embeddedmy-mock.h new file mode 100644 index 0000000..0b90b4b --- /dev/null +++ b/libmysqlpp/embeddedmy-mock.h @@ -0,0 +1,30 @@ +#ifndef MOCKMYSQLDATASOURCE_H +#define MOCKMYSQLDATASOURCE_H + +#include <mockDatabase.h> +#include <boost/filesystem/path.hpp> +#include <visibility.h> + +namespace MySQL { +namespace Embedded { + +class DLL_PUBLIC Mock : public DB::MockDatabase { + public: + Mock(const std::string & name, const std::vector<boost::filesystem::path> & ss); + ~Mock(); + + protected: + void DropDatabase() const override; + void CreateNewDatabase() const override; + + DB::Connection * openConnection() const override; + + private: + const boost::filesystem::path testDbPath; +}; + +} +} + +#endif + |