diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-04 19:46:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-04 19:46:34 +0000 |
commit | dcf0c906a22e7f23495ee8fe5c30c2d1870f7639 (patch) | |
tree | 666533e14c2fdca28df953a3d060b9aa592ee050 /libodbcpp/odbc-mock.h | |
parent | Fix error message creation in exception (diff) | |
download | libdbpp-odbc-dcf0c906a22e7f23495ee8fe5c30c2d1870f7639.tar.bz2 libdbpp-odbc-dcf0c906a22e7f23495ee8fe5c30c2d1870f7639.tar.xz libdbpp-odbc-dcf0c906a22e7f23495ee8fe5c30c2d1870f7639.zip |
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.libdbpp-odbc-1.0.1
Diffstat (limited to 'libodbcpp/odbc-mock.h')
-rw-r--r-- | libodbcpp/odbc-mock.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<boost::filesystem::path> & ss); + Mock(const std::string & base, const std::string & master, const std::string & name, const std::vector<boost::filesystem::path> & ss); ~Mock(); + const std::string base; + protected: void DropDatabase() const override; |