urlresolvertest.h 774 Bytes
Newer Older
Aard's avatar
Aard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/**
 * @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>

15
#include "libssu/ssu.h"
Aard's avatar
Aard committed
16

17 18
class UrlResolverTest: public QObject
{
Aard's avatar
Aard committed
19 20
    Q_OBJECT

21
private slots:
Aard's avatar
Aard committed
22 23 24 25
    void initTestCase();
    void cleanupTestCase();
    void checkFlavour();
    void checkRelease();
26
    void checkDomain();
Aard's avatar
Aard committed
27 28 29
    void checkCleanUrl();
    void simpleRepoUrlLookup();
    void checkReleaseRepoUrls();
30
    void checkRegisterDevice();
31
    void checkSetCredentials();
32
    void checkStoreAuthorizedKeys();
33
    void checkVerifyResponse();
Aard's avatar
Aard committed
34

35
private:
Aard's avatar
Aard committed
36 37 38 39 40
    Ssu ssu;
    QHash<QString, QString> rndRepos, releaseRepos;
};

#endif