view ui/tests/certlistparsertest.h @ 66:4f79cf993737

Tiny improvement: free resources first that you have aquired last. Added TODO for better error reporting.
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 18 Mar 2014 16:37:40 +0100
parents 5910bf9016cd
children f5fa39347366
line wrap: on
line source
#ifndef CERTLISTPARSERTEST_H
#define CERTLISTPARSERTEST_H

#include <QObject>
#include <QtTest/QtTest>

class CertificateList;

class CertListTest: public QObject
{
    Q_OBJECT

    CertificateList* testWithFile(const char *filename);

private Q_SLOTS:
    void testInvalidSig();
    void testValidList();
    void testInvalidFileNames();
    void testGarbage();
    void testTooLarge();
    void testEmptyFile();
    void benchmarkValid();
};
#endif

http://wald.intevation.org/projects/trustbridge/