view ui/tests/certlistparsertest.h @ 177:c92297bcda8f

dirent d_type is not supported on Windows, so use new port_isdir(). FWIW, according to the man page d_type isn't guarantied to work for all file systems on linux neither.
author Sascha Wilde <wilde@intevation.de>
date Tue, 25 Mar 2014 16:48:18 +0100
parents f5fa39347366
children 0861069fd6d0
line wrap: on
line source
#ifndef CERTLISTPARSERTEST_H
#define CERTLISTPARSERTEST_H

#include <QObject>
#include <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/