From d897ce42be8375ffab89615ab3953b8bd3ab3bbc Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 28 Feb 2010 12:22:25 +0100 Subject: All the other (blank) tests.. --- src/tests/websnap_test.cpp | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/tests/websnap_test.cpp (limited to 'src/tests/websnap_test.cpp') diff --git a/src/tests/websnap_test.cpp b/src/tests/websnap_test.cpp new file mode 100644 index 00000000..9c648370 --- /dev/null +++ b/src/tests/websnap_test.cpp @@ -0,0 +1,67 @@ +/* + * Copyright 2010 Andrea Diamantini + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + + + +#include + +#include +#include +#include + +#include "websnap.h" + + +class WebSnapTest : public QObject +{ + Q_OBJECT + + +public slots: + void initTestCase(); + void cleanupTestCase(); + +private slots: + +private: + WebSnap *snap; +}; + + +// ------------------------------------------- + + +void WebSnapTest::initTestCase() +{ +} + + +void WebSnapTest::cleanupTestCase() +{ +} + + +// ------------------------------------------- + + + +// ------------------------------------------- + +QTEST_MAIN(WebSnapTest) +#include "websnap_test.moc" -- cgit v1.2.1 From e5e4ffa0e844c4f1cbe40eeaa309c4711c1073e6 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 28 Feb 2010 17:05:37 +0100 Subject: 10 (of 12) tests working and ready to be "expanded".. --- src/tests/websnap_test.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/tests/websnap_test.cpp') diff --git a/src/tests/websnap_test.cpp b/src/tests/websnap_test.cpp index 9c648370..e77e365b 100644 --- a/src/tests/websnap_test.cpp +++ b/src/tests/websnap_test.cpp @@ -21,8 +21,9 @@ #include -#include #include +#include +#include #include #include "websnap.h" @@ -49,11 +50,13 @@ private: void WebSnapTest::initTestCase() { +// snap = new WebSnap; } void WebSnapTest::cleanupTestCase() { + delete snap; } @@ -63,5 +66,5 @@ void WebSnapTest::cleanupTestCase() // ------------------------------------------- -QTEST_MAIN(WebSnapTest) +QTEST_KDEMAIN(WebSnapTest,GUI) #include "websnap_test.moc" -- cgit v1.2.1 From edea0f2fc34738de52a58f00c676e814f7a8c2fd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 28 Feb 2010 23:58:31 +0100 Subject: First works on new Unit Tests.. --- src/tests/websnap_test.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/tests/websnap_test.cpp') diff --git a/src/tests/websnap_test.cpp b/src/tests/websnap_test.cpp index e77e365b..53fc1d4f 100644 --- a/src/tests/websnap_test.cpp +++ b/src/tests/websnap_test.cpp @@ -50,7 +50,6 @@ private: void WebSnapTest::initTestCase() { -// snap = new WebSnap; } -- cgit v1.2.1