blob: 42ef4e877585b37dc589b58c264eb4bdf471a15a (
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=p2testmysql")
{
}
TestClient::TestClient() :
dbpool(getService()->getConnectionPool(getAdapter()->getCommunicator(), "mock", "MythFS")),
db(std::make_shared<MythFS::DBImpl>(dbpool)),
s(getProxy<NetFS::ServicePrx>("Service"))
{
}
|