From 817e41ccb3102239c24af940f301a5335ddabeac Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Sep 2015 03:02:07 +0100 Subject: PostgreSQL mocking and tests from Project2 --- libpqpp/mock.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libpqpp/mock.h (limited to 'libpqpp/mock.h') diff --git a/libpqpp/mock.h b/libpqpp/mock.h new file mode 100644 index 0000000..e8b7366 --- /dev/null +++ b/libpqpp/mock.h @@ -0,0 +1,22 @@ +#ifndef MOCKPQDATASOURCE_H +#define MOCKPQDATASOURCE_H + +#include +#include +#include + +namespace PQ { + class DLL_PUBLIC Mock : public DB::MockServerDatabase { + public: + Mock(const std::string & master, const std::string & name, const std::vector & ss); + ~Mock(); + + DB::Connection * openConnection() const override; + + protected: + void DropDatabase() const override; + }; +} + +#endif + -- cgit v1.2.3