From fab35e762dbec9e1a35fdf54ea18345907e1ea45 Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Wed, 22 Sep 2010 13:34:21 +0300 Subject: removed non-MeeGo stuff --- .../test-security-with-aegis-token.pro | 39 ------------ .../test-security.cpp | 70 ---------------------- .../test-security-without-aegis-token.pro | 41 ------------- .../test-security.cpp | 70 ---------------------- 4 files changed, 220 deletions(-) delete mode 100644 tests/test-security-with-aegis-token/test-security-with-aegis-token.pro delete mode 100644 tests/test-security-with-aegis-token/test-security.cpp delete mode 100644 tests/test-security-without-aegis-token/test-security-without-aegis-token.pro delete mode 100644 tests/test-security-without-aegis-token/test-security.cpp (limited to 'tests') 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 -#include -#include - -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&)), - this, SLOT(resourceAcquiredHandler(const QList&))); - - connect(resourceSet, SIGNAL(errorCallback(quint32, const char*)), this, SLOT(errorCallback(quint32, const char*))); - - resourceSet->acquire(); - } - -private slots: - void resourceAcquiredHandler(const QList& /*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 -#include -#include - -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&)), - this, SLOT(resourceAcquiredHandler(const QList&))); - - connect(resourceSet, SIGNAL(errorCallback(quint32, const char*)), this, SLOT(errorCallback(quint32, const char*))); - - resourceSet->acquire(); - } - -private slots: - void resourceAcquiredHandler(const QList& /*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" -- cgit v1.2.3