urlresolvertest.h 638 Bytes
Newer Older
Aard's avatar
Aard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/**
 * @file urlresolvertest.h
 * @copyright 2012 Jolla Ltd.
 * @author Bernd Wachter <bwachter@lart.info>
 * @date 2012
 */

#ifndef _URLRESOLVERTEST_H
#define _URLRESOLVERTEST_H

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

#include <ssu.h>

class UrlResolverTest: public QObject {
    Q_OBJECT

  private slots:
    void initTestCase();
    void cleanupTestCase();
    void checkFlavour();
    void checkRelease();
25
    void checkDomain();
Aard's avatar
Aard committed
26 27 28 29 30 31 32 33 34 35
    void checkCleanUrl();
    void simpleRepoUrlLookup();
    void checkReleaseRepoUrls();

  private:
    Ssu ssu;
    QHash<QString, QString> rndRepos, releaseRepos;
};

#endif