diff options
Diffstat (limited to 'libsqlitepp/sqlite-mock.h')
-rw-r--r-- | libsqlitepp/sqlite-mock.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libsqlitepp/sqlite-mock.h b/libsqlitepp/sqlite-mock.h new file mode 100644 index 0000000..8bd0899 --- /dev/null +++ b/libsqlitepp/sqlite-mock.h @@ -0,0 +1,29 @@ +#ifndef MOCKSQLITEDATASOURCE_H +#define MOCKSQLITEDATASOURCE_H + +#include <mockDatabase.h> +#include <boost/filesystem/path.hpp> +#include <visibility.h> + +namespace SQLite { + +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 + + |