summaryrefslogtreecommitdiff
path: root/unittests/mockDefs.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-20 10:53:14 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-20 10:53:14 +0100
commit4c25da8a7ba7437657c3e2da592145113d3532f4 (patch)
tree40f0468135089ff4f9e967bf8ee74b020bee67f7 /unittests/mockDefs.cpp
downloadnetfs-gitfs-4c25da8a7ba7437657c3e2da592145113d3532f4.tar.bz2
netfs-gitfs-4c25da8a7ba7437657c3e2da592145113d3532f4.tar.xz
netfs-gitfs-4c25da8a7ba7437657c3e2da592145113d3532f4.zip
Initial commit
Not a lot of stuff, hard coded paths, tests against /usr/portage
Diffstat (limited to 'unittests/mockDefs.cpp')
-rw-r--r--unittests/mockDefs.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/unittests/mockDefs.cpp b/unittests/mockDefs.cpp
new file mode 100644
index 0000000..78ad270
--- /dev/null
+++ b/unittests/mockDefs.cpp
@@ -0,0 +1,26 @@
+#include <boost/test/test_tools.hpp>
+#include "mockDefs.h"
+
+GitFS::Test::Service::Service()
+{
+}
+
+GitFS::Test::Client::Client() :
+ s(getProxy<NetFS::ServicePrx>("Service"))
+{
+ BOOST_TEST_REQUIRE(s);
+ s->ice_ping();
+}
+
+GitFS::Test::VolumeClient::VolumeClient() :
+ v(s->connect("testrepo", "testauth"))
+{
+ BOOST_TEST_REQUIRE(v);
+ v->ice_ping();
+}
+
+GitFS::Test::VolumeClient::~VolumeClient()
+{
+ v->disconnect();
+}
+