mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-28 12:34:31 +00:00
Merge the declarations into the .cpp, and update the
qmake buildsystem to match. Add CMake support. svn path=/trunk/kdesupport/qca/; revision=594737
This commit is contained in:
parent
a57b8f186d
commit
ca11f8dab1
8
unittest/tls/CMakeLists.txt
Normal file
8
unittest/tls/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
set(tlsunittest_bin_SRCS tlsunittest.cpp)
|
||||
|
||||
MY_AUTOMOC( tlsunittest_bin_SRCS )
|
||||
|
||||
add_executable(tlsunittest ${tlsunittest_bin_SRCS} )
|
||||
|
||||
target_link_libraries( tlsunittest qca ${QT_QTTEST_LIBRARY})
|
||||
|
@ -12,5 +12,4 @@ check.depends = tlsunittest
|
||||
check.commands = ./tlsunittest
|
||||
|
||||
# Input
|
||||
HEADERS += tlsunittest.h
|
||||
SOURCES += tlsunittest.cpp
|
||||
|
@ -22,8 +22,21 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include "tlsunittest.h"
|
||||
|
||||
#include <QtCrypto>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
class TLSUnitTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private slots:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
void testCipherList();
|
||||
private:
|
||||
QCA::Initializer* m_init;
|
||||
};
|
||||
|
||||
void TLSUnitTest::initTestCase()
|
||||
{
|
||||
@ -112,3 +125,5 @@ void TLSUnitTest::testCipherList()
|
||||
}
|
||||
|
||||
QTEST_MAIN(TLSUnitTest)
|
||||
|
||||
#include "tlsunittest.moc"
|
||||
|
@ -1,43 +0,0 @@
|
||||
/**
|
||||
* Copyright (C) 2006 Brad Hards <bradh@frogmouth.net>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef TLSUNITTEST_H
|
||||
#define TLSUNITTEST_H
|
||||
|
||||
#include <QtCrypto>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
class TLSUnitTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private slots:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
void testCipherList();
|
||||
private:
|
||||
QCA::Initializer* m_init;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user