Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'fix_unit_test_compilation' into 'master'
[buteo-plugin-webcal] Remove now unnecessary (and broken) casts on unit tests....

See merge request mer-core/buteo-sync-plugin-webcal!7
  • Loading branch information
pvuorela committed Apr 10, 2021
2 parents 56b8561 + e68785a commit de87a65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/tst_webcalclient.cpp
Expand Up @@ -181,7 +181,7 @@ void tst_WebCalClient::firstDownload()
mClient->processData(icsDataFirst, "\"etag\"");

const Buteo::SyncResults res(mClient->getSyncResults());
QCOMPARE(res.majorCode(), int(Buteo::SyncResults::SYNC_RESULT_SUCCESS));
QCOMPARE(res.majorCode(), Buteo::SyncResults::SYNC_RESULT_SUCCESS);
QCOMPARE(res.targetResults().count(), 1);
Buteo::ItemCounts counts(res.targetResults().first().localItems());
QCOMPARE(counts.added, unsigned(1));
Expand All @@ -196,7 +196,7 @@ void tst_WebCalClient::downloadWithSameEtag()
mClient->processData(icsDataFirst, "\"etag\"");

const Buteo::SyncResults res(mClient->getSyncResults());
QCOMPARE(res.majorCode(), int(Buteo::SyncResults::SYNC_RESULT_SUCCESS));
QCOMPARE(res.majorCode(), Buteo::SyncResults::SYNC_RESULT_SUCCESS);
QCOMPARE(res.targetResults().count(), 0);

validate();
Expand Down Expand Up @@ -262,7 +262,7 @@ void tst_WebCalClient::downloadWithDifferentEtag()
mClient->processData(icsDataSecond, "\"etag2\"");

const Buteo::SyncResults res(mClient->getSyncResults());
QCOMPARE(res.majorCode(), int(Buteo::SyncResults::SYNC_RESULT_SUCCESS));
QCOMPARE(res.majorCode(), Buteo::SyncResults::SYNC_RESULT_SUCCESS);
QCOMPARE(res.targetResults().count(), 1);
Buteo::ItemCounts counts(res.targetResults().first().localItems());
QCOMPARE(counts.added, unsigned(2));
Expand All @@ -282,7 +282,7 @@ void tst_WebCalClient::downloadWithMetaDataUpdateOnly()
mClient->processData(icsDataSecond, "\"etag2\"");

const Buteo::SyncResults res(mClient->getSyncResults());
QCOMPARE(res.majorCode(), int(Buteo::SyncResults::SYNC_RESULT_SUCCESS));
QCOMPARE(res.majorCode(), Buteo::SyncResults::SYNC_RESULT_SUCCESS);
QCOMPARE(res.targetResults().count(), 0);

QVERIFY(mClient->mStorage);
Expand Down Expand Up @@ -343,7 +343,7 @@ void tst_WebCalClient::downloadWithoutEtag()
mClient->processData(icsDataThird, "");

const Buteo::SyncResults res(mClient->getSyncResults());
QCOMPARE(res.majorCode(), int(Buteo::SyncResults::SYNC_RESULT_SUCCESS));
QCOMPARE(res.majorCode(), Buteo::SyncResults::SYNC_RESULT_SUCCESS);
QCOMPARE(res.targetResults().count(), 1);
Buteo::ItemCounts counts(res.targetResults().first().localItems());
QCOMPARE(counts.added, unsigned(1));
Expand Down

0 comments on commit de87a65

Please sign in to comment.