summaryrefslogtreecommitdiff
path: root/libodbcpp/mock.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-24 03:04:15 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-24 03:06:07 +0100
commit274adf39c78bf9050ed34815a3472e9e418dd165 (patch)
tree4f45327778fefee7ceb849def04c3fdd66a7b297 /libodbcpp/mock.h
parentConnector compatibility fix (diff)
downloadlibdbpp-odbc-274adf39c78bf9050ed34815a3472e9e418dd165.tar.bz2
libdbpp-odbc-274adf39c78bf9050ed34815a3472e9e418dd165.tar.xz
libdbpp-odbc-274adf39c78bf9050ed34815a3472e9e418dd165.zip
ODBC mocking and tests from Project2
Diffstat (limited to 'libodbcpp/mock.h')
-rw-r--r--libodbcpp/mock.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libodbcpp/mock.h b/libodbcpp/mock.h
new file mode 100644
index 0000000..d2bcbfe
--- /dev/null
+++ b/libodbcpp/mock.h
@@ -0,0 +1,25 @@
+#ifndef MOCKODBCDATASOURCE_H
+#define MOCKODBCDATASOURCE_H
+
+#include <mockDatabase.h>
+#include <boost/filesystem/path.hpp>
+#include <visibility.h>
+
+namespace ODBC {
+
+class DLL_PUBLIC Mock : public DB::MockServerDatabase {
+ public:
+ Mock(const std::string & master, const std::string & name, const std::vector<boost::filesystem::path> & ss);
+ ~Mock();
+
+ protected:
+ void DropDatabase() const override;
+
+ private:
+ DB::Connection * openConnection() const override;
+};
+
+}
+
+#endif
+