[pim/pimcommon] src/pimcommon/shareserviceurl/autotests: Adapt autotest
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 3197a9d787a8d0bfb4ac13dc58583899ad8e0974 by Laurent Montel.
Committed on 14/08/2026 at 21:36.
Pushed by mlaurent into branch 'master'.
Adapt autotest
M +5 -5 src/pimcommon/shareserviceurl/autotests/shareserviceurlmanagertest.cpp
https://invent.kde.org/pim/pimcommon/-/commit/3197a9d787a8d0bfb4ac13dc58583899ad8e0974
diff --git a/src/pimcommon/shareserviceurl/autotests/shareserviceurlmanagertest.cpp b/src/pimcommon/shareserviceurl/autotests/shareserviceurlmanagertest.cpp
index f887ed8a..a472e569 100644
--- a/src/pimcommon/shareserviceurl/autotests/shareserviceurlmanagertest.cpp
+++ b/src/pimcommon/shareserviceurl/autotests/shareserviceurlmanagertest.cpp
@@ -53,11 +53,11 @@ void ShareServiceUrlManagerTest::shouldGenerateServiceUrl_data()
<< QUrl(QStringLiteral("mailto:?subject=kde&body=http://www.kde.org")) << true;
QTest::newRow("no title but valid link (linkedin)")
- << QString() << QStringLiteral("http://www.kde.org") << PimCommon::ShareServiceUrlManager::LinkedIn
- << QUrl(QStringLiteral("http://www.linkedin.com/shareArticle?mini=true&url=http://www.kde.org&title")) << true;
+ << QString() << QStringLiteral("https://www.kde.org") << PimCommon::ShareServiceUrlManager::LinkedIn
+ << QUrl(QStringLiteral("https://www.linkedin.com/shareArticle?mini=true&url=https://www.kde.org&title")) << true;
QTest::newRow("title and valid link (linkedin)") << QStringLiteral("kde") << QStringLiteral("http://www.kde.org")
<< PimCommon::ShareServiceUrlManager::LinkedIn
- << QUrl(QStringLiteral("http://www.linkedin.com/shareArticle?mini=true&url=http://www.kde.org&title=kde"))
+ << QUrl(QStringLiteral("https://www.linkedin.com/shareArticle?mini=true&url=http://www.kde.org&title=kde"))
<< true;
QTest::newRow("no title but valid link (evernote)") << QString() << QStringLiteral("http://www.kde.org") << PimCommon::ShareServiceUrlManager::Evernote
@@ -68,10 +68,10 @@ void ShareServiceUrlManagerTest::shouldGenerateServiceUrl_data()
QTest::newRow("no title but valid link (livejournal)")
<< QString() << QStringLiteral("http://www.kde.org") << PimCommon::ShareServiceUrlManager::LiveJournal
- << QUrl(QStringLiteral("http://www.livejournal.com/update.bml?event=http://www.kde.org&subject")) << true;
+ << QUrl(QStringLiteral("https://www.livejournal.com/update.bml?event=http://www.kde.org&subject")) << true;
QTest::newRow("title and valid link (livejournal)")
<< QStringLiteral("kde") << QStringLiteral("http://www.kde.org") << PimCommon::ShareServiceUrlManager::LiveJournal
- << QUrl(QStringLiteral("http://www.livejournal.com/update.bml?event=http://www.kde.org&subject=kde")) << true;
+ << QUrl(QStringLiteral("https://www.livejournal.com/update.bml?event=http://www.kde.org&subject=kde")) << true;
}
void ShareServiceUrlManagerTest::shouldGenerateServiceUrl()