From 274adf39c78bf9050ed34815a3472e9e418dd165 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Sep 2015 03:04:15 +0100 Subject: ODBC mocking and tests from Project2 --- libodbcpp/mock.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 libodbcpp/mock.h (limited to 'libodbcpp/mock.h') 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 +#include +#include + +namespace ODBC { + +class DLL_PUBLIC Mock : public DB::MockServerDatabase { + public: + Mock(const std::string & master, const std::string & name, const std::vector & ss); + ~Mock(); + + protected: + void DropDatabase() const override; + + private: + DB::Connection * openConnection() const override; +}; + +} + +#endif + -- cgit v1.2.3