summaryrefslogtreecommitdiff
path: root/service/test.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-09 13:58:38 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-09 13:58:38 +0000
commit62d506c24aaf543f84c82e2850a05b1387e4990d (patch)
tree3d356dcef6cb64baf648119c6b61aa9afd4e450b /service/test.cpp
parentExclude api.h from tidy checks (diff)
downloadmirrorsearch-62d506c24aaf543f84c82e2850a05b1387e4990d.tar.bz2
mirrorsearch-62d506c24aaf543f84c82e2850a05b1387e4990d.tar.xz
mirrorsearch-62d506c24aaf543f84c82e2850a05b1387e4990d.zip
Clang format
Diffstat (limited to 'service/test.cpp')
-rw-r--r--service/test.cpp27
1 files changed, 11 insertions, 16 deletions
diff --git a/service/test.cpp b/service/test.cpp
index 6d064fc..dabf8b7 100644
--- a/service/test.cpp
+++ b/service/test.cpp
@@ -1,28 +1,24 @@
#define BOOST_TEST_MODULE MirrorSearch
#include <boost/test/unit_test.hpp>
-#include <pq-mock.h>
-#include <dryice.h>
-#include <definedDirs.h>
#include <api.h>
+#include <definedDirs.h>
+#include <dryice.h>
+#include <pq-mock.h>
class Service : DB::PluginMock<PQ::Mock>, public IceTray::DryIce {
- public:
- Service() : DB::PluginMock<PQ::Mock>("MirrorSearch", {
- rootDir / "schema.sql",
- rootDir / "data.sql"
- }, "user=postgres") { }
-
+public:
+ Service() :
+ DB::PluginMock<PQ::Mock>("MirrorSearch", {rootDir / "schema.sql", rootDir / "data.sql"}, "user=postgres")
+ {
+ }
};
class TestClient : public IceTray::DryIceClient {
- public:
- TestClient() :
- s(getProxy<MirrorSearch::SearchPrx>("Search"))
- {
- }
+public:
+ TestClient() : s(getProxy<MirrorSearch::SearchPrx>("Search")) { }
- MirrorSearch::SearchPrxPtr s;
+ MirrorSearch::SearchPrxPtr s;
};
BOOST_TEST_GLOBAL_FIXTURE(Service);
@@ -90,4 +86,3 @@ BOOST_AUTO_TEST_CASE(getMatches_xtrans_lucky)
}
BOOST_AUTO_TEST_SUITE_END();
-