From 5dd91c7b80443c1f0e747088159c4d8b78d1856d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Dec 2015 04:13:24 +0000 Subject: SQLite files prefixed with sqlite- --- libsqlitepp/sqlite-mock.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 libsqlitepp/sqlite-mock.h (limited to 'libsqlitepp/sqlite-mock.h') 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 +#include +#include + +namespace SQLite { + +class DLL_PUBLIC Mock : public DB::MockDatabase { + public: + Mock(const std::string & name, const std::vector & ss); + ~Mock(); + + protected: + void DropDatabase() const override; + void CreateNewDatabase() const override; + + DB::Connection * openConnection() const override; + + private: + const boost::filesystem::path testDbPath; +}; + +} + +#endif + + -- cgit v1.2.3