From 54ff45dbff461f8a1bdc84ea4adbd44c6910f9c1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 22 Apr 2018 15:08:27 +0100 Subject: Update to new PluginMock interface --- libsqlitepp/sqlite-mock.cpp | 4 ++-- libsqlitepp/unittests/testsqlite.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libsqlitepp') 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 & ss) : - testDbPath(boost::filesystem::path(root) / boost::lexical_cast(getpid()) / boost::lexical_cast(++DB::MockDatabase::mocked)) +Mock::Mock(const std::string & root, const std::string & name, const std::vector & ss) : + testDbPath(boost::filesystem::path(root) / name / boost::lexical_cast(getpid()) / boost::lexical_cast(++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 { public: - StandardMockDatabase() : DB::PluginMock("", "sqlitemock", { + StandardMockDatabase() : DB::PluginMock("sqlitemock", { rootDir / "sqliteschema.sql" }) { } -- cgit v1.2.3