1 #include "testProtocolCommon.h"
4 #include <jsonprotocol.h>
6 #include <QLocalSocket>
7 #include <QLocalServer>
8 #include <QCoreApplication>
13 void runTest(amb::AmbRemoteClient *c)
15 DebugOut(0) << "calling client->list()" << endl;
16 c->list([](std::vector<amb::Object> supported)
18 DebugOut(0) << "list call reply" << endl;
19 g_assert(supported.size() == 2);
23 int main(int argc, char** argv)
25 DebugOut::setDebugThreshhold(7);
26 DebugOut::setThrowErr(true);
27 DebugOut::setThrowWarn(false);
29 DebugOut(0) << "Testing AMB json server/client" << endl;
31 QCoreApplication app(argc, argv);
37 socket.getSocket()->waitForConnected();
39 DebugOut(0) << "We are connected!" << endl;
41 amb::AmbRemoteClient client(&socket);