diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-24 04:13:24 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-24 04:13:24 +0000 |
commit | 5dd91c7b80443c1f0e747088159c4d8b78d1856d (patch) | |
tree | 226331b6026e722f6a69765963ff19a9436155c1 /libsqlitepp/sqlite-mock.h | |
parent | Use parent glibmm (diff) | |
download | libdbpp-sqlite-5dd91c7b80443c1f0e747088159c4d8b78d1856d.tar.bz2 libdbpp-sqlite-5dd91c7b80443c1f0e747088159c4d8b78d1856d.tar.xz libdbpp-sqlite-5dd91c7b80443c1f0e747088159c4d8b78d1856d.zip |
SQLite files prefixed with sqlite-
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 + + |