view ui/tests/certlistparsertest.h @ 214:aab742690bee

Fix check for selected items and wait for bytes written. According to the documentation closing the write channel should suffice. But in testing it did not sent over everything.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 26 Mar 2014 17:17:19 +0100
parents 0861069fd6d0
children c05e126b0b9e
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);
    QString getRandomDataFile(size_t size);

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

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