summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-09-22 13:34:21 +0300
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-09-22 13:34:21 +0300
commitfab35e762dbec9e1a35fdf54ea18345907e1ea45 (patch)
tree59fad8e3bec790ad92acb6587ca9d2c8ad050148 /tests
parent2d641d9293e6dd0c0275ee97d1773cd836c089f8 (diff)
downloadlibresourceqt-fab35e762dbec9e1a35fdf54ea18345907e1ea45.tar.gz
removed non-MeeGo stuff
Diffstat (limited to 'tests')
-rw-r--r--tests/test-security-with-aegis-token/test-security-with-aegis-token.pro39
-rw-r--r--tests/test-security-with-aegis-token/test-security.cpp70
-rw-r--r--tests/test-security-without-aegis-token/test-security-without-aegis-token.pro41
-rw-r--r--tests/test-security-without-aegis-token/test-security.cpp70
4 files changed, 0 insertions, 220 deletions
diff --git a/tests/test-security-with-aegis-token/test-security-with-aegis-token.pro b/tests/test-security-with-aegis-token/test-security-with-aegis-token.pro
deleted file mode 100644
index 3a19ddf..0000000
--- a/tests/test-security-with-aegis-token/test-security-with-aegis-token.pro
+++ /dev/null
@@ -1,39 +0,0 @@
-##############################################################################
-# This file is part of libresourceqt #
-# #
-# Copyright (C) 2010 Nokia Corporation. #
-# #
-# This library is free software; you can redistribute #
-# it and/or modify it under the terms of the GNU Lesser General Public #
-# License as published by the Free Software Foundation #
-# version 2.1 of the License. #
-# #
-# This library 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 #
-# Lesser General Public License for more details. #
-# #
-# You should have received a copy of the GNU Lesser General Public #
-# License along with this library; if not, write to the Free Software #
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 #
-# USA. #
-##############################################################################
-
-include(../../common.pri)
-TEMPLATE = app
-TARGET = test-security-with-aegis-token
-QT = testlib core
-CONFIG -= app_bundle
-DEPENDPATH += $${POLICY} $${BASE}/src .
-INCLUDEPATH += $${LIBRESOURCEQT}/src $${LIBRESOURCEQT}/include $${LIBRESOURCEINC} $${LIBDBUSQEVENTLOOP}
-
-# Input
-SOURCES += test-security.cpp
-
-LIBS += -L$${LIBDBUSQEVENTLOOP}/build -L$${LIBRESOURCEQT}/build -ldbus-qeventloop -lresourceqt
-
-# Install options
-target.path = /usr/lib/libresourceqt-tests/
-#target.files = test-security-with-aegis-token
-
-INSTALLS = target
diff --git a/tests/test-security-with-aegis-token/test-security.cpp b/tests/test-security-with-aegis-token/test-security.cpp
deleted file mode 100644
index 16eedd5..0000000
--- a/tests/test-security-with-aegis-token/test-security.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/*************************************************************************
-This file is part of libresourceqt
-
-Copyright (C) 2010 Nokia Corporation.
-
-This library is free software; you can redistribute
-it and/or modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation
-version 2.1 of the License.
-
-This library 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
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
-USA.
-*************************************************************************/
-
-
-
-#include "qt4/policy/resource-set.h"
-#include <cstdio>
-#include <cstdlib>
-#include <QCoreApplication>
-
-using namespace ResourcePolicy;
-
-class TestSecurity: public QObject
-{
- Q_OBJECT
-
-public:
- void testSecurity() {
-
- ResourceSet *resourceSet = new ResourceSet("call", this);
- resourceSet->addResource(ResourcePolicy::AudioRecorderType);
-
- connect(resourceSet, SIGNAL(resourcesGranted(const QList<ResourcePolicy::ResourceType>&)),
- this, SLOT(resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>&)));
-
- connect(resourceSet, SIGNAL(errorCallback(quint32, const char*)), this, SLOT(errorCallback(quint32, const char*)));
-
- resourceSet->acquire();
- }
-
-private slots:
- void resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>& /*grantedOptionalResList*/) {
- printf(">>> resource acquired\n");
- exit(0);
- }
-
- void errorCallback(quint32 code, const char* message) {
- printf(">>> error %u, %s\n", code, message);
- exit(1);
- }
-};
-
-int main(int argc, char* argv[]) {
- QCoreApplication app(argc, argv);
-
- TestSecurity *test = new TestSecurity();
- test->testSecurity();
-
- return app.exec();
-}
-
-#include "test-security.moc"
diff --git a/tests/test-security-without-aegis-token/test-security-without-aegis-token.pro b/tests/test-security-without-aegis-token/test-security-without-aegis-token.pro
deleted file mode 100644
index 8066c88..0000000
--- a/tests/test-security-without-aegis-token/test-security-without-aegis-token.pro
+++ /dev/null
@@ -1,41 +0,0 @@
-##############################################################################
-# This file is part of libresourceqt #
-# #
-# Copyright (C) 2010 Nokia Corporation. #
-# #
-# This library is free software; you can redistribute #
-# it and/or modify it under the terms of the GNU Lesser General Public #
-# License as published by the Free Software Foundation #
-# version 2.1 of the License. #
-# #
-# This library 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 #
-# Lesser General Public License for more details. #
-# #
-# You should have received a copy of the GNU Lesser General Public #
-# License along with this library; if not, write to the Free Software #
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 #
-# USA. #
-##############################################################################
-
-include(../../common.pri)
-TEMPLATE = app
-TARGET = test-security-without-aegis-token
-QT = testlib core
-CONFIG -= app_bundle
-DEPENDPATH += $${POLICY} $${BASE}/src .
-INCLUDEPATH += $${LIBRESOURCEQT}/src $${LIBRESOURCEQT}/include $${LIBRESOURCEINC} $${LIBDBUSQEVENTLOOP}
-
-# Input
-SOURCES += test-security.cpp
-
-LIBS += -L$${LIBDBUSQEVENTLOOP}/build -L$${LIBRESOURCEQT}/build -ldbus-qeventloop -lresourceqt
-
-# Install options
-# Install options
-target.path = /usr/lib/libresourceqt-tests/
-#target.files = test-security-without-aegis-token
-
-INSTALLS = target
-
diff --git a/tests/test-security-without-aegis-token/test-security.cpp b/tests/test-security-without-aegis-token/test-security.cpp
deleted file mode 100644
index 16eedd5..0000000
--- a/tests/test-security-without-aegis-token/test-security.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/*************************************************************************
-This file is part of libresourceqt
-
-Copyright (C) 2010 Nokia Corporation.
-
-This library is free software; you can redistribute
-it and/or modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation
-version 2.1 of the License.
-
-This library 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
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
-USA.
-*************************************************************************/
-
-
-
-#include "qt4/policy/resource-set.h"
-#include <cstdio>
-#include <cstdlib>
-#include <QCoreApplication>
-
-using namespace ResourcePolicy;
-
-class TestSecurity: public QObject
-{
- Q_OBJECT
-
-public:
- void testSecurity() {
-
- ResourceSet *resourceSet = new ResourceSet("call", this);
- resourceSet->addResource(ResourcePolicy::AudioRecorderType);
-
- connect(resourceSet, SIGNAL(resourcesGranted(const QList<ResourcePolicy::ResourceType>&)),
- this, SLOT(resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>&)));
-
- connect(resourceSet, SIGNAL(errorCallback(quint32, const char*)), this, SLOT(errorCallback(quint32, const char*)));
-
- resourceSet->acquire();
- }
-
-private slots:
- void resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>& /*grantedOptionalResList*/) {
- printf(">>> resource acquired\n");
- exit(0);
- }
-
- void errorCallback(quint32 code, const char* message) {
- printf(">>> error %u, %s\n", code, message);
- exit(1);
- }
-};
-
-int main(int argc, char* argv[]) {
- QCoreApplication app(argc, argv);
-
- TestSecurity *test = new TestSecurity();
- test->testSecurity();
-
- return app.exec();
-}
-
-#include "test-security.moc"