diff options
Diffstat (limited to 'service/test.cpp')
-rw-r--r-- | service/test.cpp | 27 |
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(); - |