blob: 2b13484a776e9eb2f8ffd39eec02cc969efd39fa (
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>("MythFS", {
rootDir / "fixtures" / "schema-min.sql",
rootDir / "fixtures" / "data.sql"
}, "options=libdbpp")
{
}
TestClient::TestClient() :
dbpool(getService()->getConnectionPool(getAdapter()->getCommunicator(), "mock", "MythFS")),
db(std::make_shared<MythFS::DBImpl>(dbpool)),
s(getProxy<NetFS::ServicePrx>("Service"))
{
}
|