diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-22 15:08:27 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-22 15:08:27 +0100 |
commit | 54ff45dbff461f8a1bdc84ea4adbd44c6910f9c1 (patch) | |
tree | d7ca9fce69485d4413ea85dc37ed23162a86a9b0 | |
parent | C++17 (diff) | |
download | libdbpp-sqlite-54ff45dbff461f8a1bdc84ea4adbd44c6910f9c1.tar.bz2 libdbpp-sqlite-54ff45dbff461f8a1bdc84ea4adbd44c6910f9c1.tar.xz libdbpp-sqlite-54ff45dbff461f8a1bdc84ea4adbd44c6910f9c1.zip |
Update to new PluginMock interfacelibdbpp-sqlite-1.2.0.1
-rw-r--r-- | libsqlitepp/sqlite-mock.cpp | 4 | ||||
-rw-r--r-- | libsqlitepp/unittests/testsqlite.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libsqlitepp/sqlite-mock.cpp b/libsqlitepp/sqlite-mock.cpp index 418a6ac..7a18b87 100644 --- a/libsqlitepp/sqlite-mock.cpp +++ b/libsqlitepp/sqlite-mock.cpp @@ -7,8 +7,8 @@ NAMEDFACTORY("sqlite", SQLite::Mock, DB::MockDatabaseFactory); namespace SQLite { -Mock::Mock(const std::string & root, const std::string &, const std::vector<boost::filesystem::path> & ss) : - testDbPath(boost::filesystem::path(root) / boost::lexical_cast<std::string>(getpid()) / boost::lexical_cast<std::string>(++DB::MockDatabase::mocked)) +Mock::Mock(const std::string & root, const std::string & name, const std::vector<boost::filesystem::path> & ss) : + testDbPath(boost::filesystem::path(root) / name / boost::lexical_cast<std::string>(getpid()) / boost::lexical_cast<std::string>(++DB::MockDatabase::mocked)) { CreateNewDatabase(); PlaySchemaScripts(ss); diff --git a/libsqlitepp/unittests/testsqlite.cpp b/libsqlitepp/unittests/testsqlite.cpp index 177bdaf..f742acd 100644 --- a/libsqlitepp/unittests/testsqlite.cpp +++ b/libsqlitepp/unittests/testsqlite.cpp @@ -11,7 +11,7 @@ class StandardMockDatabase : public DB::PluginMock<SQLite::Mock> { public: - StandardMockDatabase() : DB::PluginMock<SQLite::Mock>("", "sqlitemock", { + StandardMockDatabase() : DB::PluginMock<SQLite::Mock>("sqlitemock", { rootDir / "sqliteschema.sql" }) { } |