tests/auto/qsslkey/tst_qsslkey.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    48 #include <QtNetwork/qnetworkproxy.h>
    48 #include <QtNetwork/qnetworkproxy.h>
    49 
    49 
    50 #ifdef Q_OS_SYMBIAN
    50 #ifdef Q_OS_SYMBIAN
    51 // In Symbian OS test data is located in applications private dir
    51 // In Symbian OS test data is located in applications private dir
    52 // Current path (C:\private\<UID>) contains only ascii chars
    52 // Current path (C:\private\<UID>) contains only ascii chars
    53 #define SRCDIR QDir::currentPath().toAscii()
    53 #define SRCDIR "."
    54 #endif
    54 #endif
    55 
    55 
    56 class tst_QSslKey : public QObject
    56 class tst_QSslKey : public QObject
    57 {
    57 {
    58     Q_OBJECT
    58     Q_OBJECT
   165 
   165 
   166     QSslKey key2;
   166     QSslKey key2;
   167     QCOMPARE(key, key2);
   167     QCOMPARE(key, key2);
   168 }
   168 }
   169 
   169 
   170 Q_DECLARE_METATYPE(QSsl::KeyAlgorithm);
   170 Q_DECLARE_METATYPE(QSsl::KeyAlgorithm)
   171 Q_DECLARE_METATYPE(QSsl::KeyType);
   171 Q_DECLARE_METATYPE(QSsl::KeyType)
   172 Q_DECLARE_METATYPE(QSsl::EncodingFormat);
   172 Q_DECLARE_METATYPE(QSsl::EncodingFormat)
   173 
   173 
   174 void tst_QSslKey::createPlainTestRows()
   174 void tst_QSslKey::createPlainTestRows()
   175 {
   175 {
   176     QTest::addColumn<QString>("absFilePath");
   176     QTest::addColumn<QString>("absFilePath");
   177     QTest::addColumn<QSsl::KeyAlgorithm>("algorithm");
   177     QTest::addColumn<QSsl::KeyAlgorithm>("algorithm");