summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-22 15:08:50 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-22 15:08:50 +0100
commitcaec64ec049431d46ce28742ffbd448418949e26 (patch)
tree2508a2cb1168e40d38f19c43742d36b198a832e8
parentIce 3.7 (diff)
downloadgentoobrowse-api-caec64ec049431d46ce28742ffbd448418949e26.tar.bz2
gentoobrowse-api-caec64ec049431d46ce28742ffbd448418949e26.tar.xz
gentoobrowse-api-caec64ec049431d46ce28742ffbd448418949e26.zip
Update to new PluginMock interfacegentoobrowse-api-0.10.0.1
-rw-r--r--gentoobrowse-api/unittests/mockDefs.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/gentoobrowse-api/unittests/mockDefs.cpp b/gentoobrowse-api/unittests/mockDefs.cpp
index c06b81a..16d8853 100644
--- a/gentoobrowse-api/unittests/mockDefs.cpp
+++ b/gentoobrowse-api/unittests/mockDefs.cpp
@@ -15,9 +15,10 @@ MockMailServerImpl::getSentEmails(const Ice::Current &)
}
Service::Service() :
- DB::PluginMock<PQ::Mock>("user=postgres dbname=postgres", "GentooBrowseAPI", {
+ DB::PluginMock<PQ::Mock>("GentooBrowseAPI", {
rootDir.parent_path() / "db" / "schema.sql",
- rootDir / "data.sql" })
+ rootDir / "data.sql" },
+ "user=postgres dbname=postgres")
{
replace("mailserver", std::make_shared<MockMailServerImpl>());
}
@@ -28,8 +29,9 @@ Maintenance::Maintenance() :
"--GentooBrowseAPI.RepoRoot=" + (rootDir / "fixtures" / "gitrepo").string(),
"--GentooBrowseAPI.BugRoot=file://" + (rootDir / "fixtures" / "bugs").string()
}),
- DB::PluginMock<PQ::Mock>("user=postgres dbname=postgres", "GentooBrowseAPI", {
- rootDir.parent_path() / "db" / "schema.sql" })
+ DB::PluginMock<PQ::Mock>("GentooBrowseAPI", {
+ rootDir.parent_path() / "db" / "schema.sql" },
+ "user=postgres dbname=postgres")
{
replace("mailserver", std::make_shared<MockMailServerImpl>());
}