blob: 9f30ca0db1bff34496d6ea72683920ff265dba10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "mockDefs.h"
#include <definedDirs.h>
#include <Ice/ObjectAdapter.h>
#include <dbimpl.h>
Service::Service() :
DB::PluginMock<MySQL::Mock>("options=p2testmysql", "MythFS", {
rootDir / "fixtures" / "schema-min.sql",
rootDir / "fixtures" / "data.sql"
})
{
}
TestClient::TestClient() :
dbpool(getService()->getConnectionPool(getAdapter()->getCommunicator(), "mock", "MythFS")),
db(std::make_shared<MythFS::DBImpl>(dbpool)),
s(getProxy<NetFS::ServicePrx>("Service"))
{
}
|