From 94927bfef6548ac20118586bfcd51e60b296e569 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Dec 2015 03:43:16 +0000 Subject: Beginnings of embbeded MySQL --- libmysqlpp/unittests/testmysqle.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libmysqlpp/unittests/testmysqle.cpp (limited to 'libmysqlpp/unittests/testmysqle.cpp') diff --git a/libmysqlpp/unittests/testmysqle.cpp b/libmysqlpp/unittests/testmysqle.cpp new file mode 100644 index 0000000..0d1defb --- /dev/null +++ b/libmysqlpp/unittests/testmysqle.cpp @@ -0,0 +1,16 @@ +#define BOOST_TEST_MODULE TestEmbeddedMySQL +#include + +#include +#include + +class StandardMockDatabase : public MySQL::Embedded::Mock { + public: + StandardMockDatabase() : MySQL::Embedded::Mock("mysqlmock", { + rootDir / "mysqlschema.sql" }) + { + } +}; + +#include "testMain.cpp" + -- cgit v1.2.3