From: Ionutz Borcoman Date: Sun, 6 Mar 2011 18:47:32 +0000 (+0200) Subject: removed obsolete json test dir. X-Git-Tag: 0.8.0-1~5 X-Git-Url: http://vcs.maemo.org/git/?p=simple-xmbc-rem;a=commitdiff_plain;h=135094885cf2c9d766b72e62e02352f33c56eff1 removed obsolete json test dir. --- diff --git a/test-json/main.cpp b/test-json/main.cpp deleted file mode 100644 index 9e61ad3..0000000 --- a/test-json/main.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include - -#include "../src/json.h" - -class JsonTest : public QObject -{ - Q_OBJECT - -public: - JsonTest(); - -private Q_SLOTS: -// void initTestCase(); -// void cleanupTestCase(); -// void testCase1(); -// void testCase1_data(); - void testPlayerGetActivePlayers(); -}; - -JsonTest::JsonTest() -{ -} - -//void JsonTest::initTestCase() -//{ -//} - -//void JsonTest::cleanupTestCase() -//{ -//} - -//void JsonTest::testCase1() -//{ -// QFETCH(QString, data); -// QVERIFY2(true, "Failure"); -//} - -//void JsonTest::testCase1_data() -//{ -// QTest::addColumn("data"); -// QTest::newRow("0") << QString(); -//} - -QTEST_APPLESS_MAIN(JsonTest); - -void JsonTest::testPlayerGetActivePlayers() -{ - JsonEngine je; - QCOMPARE(QString("{\"jsonrpc\" : \"2.0\", \"method\" : \"Player.GetActivePlayers\", \"id\" : 1}"), - je.playerGetActivePlayers()); -} - -#include "main.moc" diff --git a/test-json/test-json.pro b/test-json/test-json.pro deleted file mode 100644 index c51ddc1..0000000 --- a/test-json/test-json.pro +++ /dev/null @@ -1,15 +0,0 @@ -QT += testlib -QT -= gui - -TARGET = test-json -CONFIG += console -CONFIG -= app_bundle - -TEMPLATE = app - -SOURCES += main.cpp \ - ../src/json.cpp -DEFINES += SRCDIR=\\\"$$PWD/\\\" - -HEADERS += \ - ../src/json.h