From dcf0c906a22e7f23495ee8fe5c30c2d1870f7639 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 4 Jan 2016 19:46:34 +0000 Subject: Take an extra argument to mock to allow for specifying which driver to use, etc. Move all the PostgreSQL specific bits into the unit test itself. Reference the driver library by filename thus not requiring configuration for the test to run. --- libodbcpp/odbc-mock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libodbcpp/odbc-mock.h') diff --git a/libodbcpp/odbc-mock.h b/libodbcpp/odbc-mock.h index d2bcbfe..f66d09d 100644 --- a/libodbcpp/odbc-mock.h +++ b/libodbcpp/odbc-mock.h @@ -9,9 +9,11 @@ namespace ODBC { class DLL_PUBLIC Mock : public DB::MockServerDatabase { public: - Mock(const std::string & master, const std::string & name, const std::vector & ss); + Mock(const std::string & base, const std::string & master, const std::string & name, const std::vector & ss); ~Mock(); + const std::string base; + protected: void DropDatabase() const override; -- cgit v1.2.3