File indexing completed on 2024-11-10 04:40:08
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "cachepolicytest.h" 0008 #include "cachepolicy.h" 0009 #include <QTest> 0010 0011 CachePolicyTest::CachePolicyTest(QObject *parent) 0012 : QObject(parent) 0013 { 0014 } 0015 0016 CachePolicyTest::~CachePolicyTest() 0017 { 0018 } 0019 0020 void CachePolicyTest::shouldHaveDefaultValue() 0021 { 0022 Akonadi::CachePolicy c; 0023 QVERIFY(c.inheritFromParent()); 0024 QCOMPARE(c.intervalCheckTime(), -1); 0025 QCOMPARE(c.cacheTimeout(), -1); 0026 QVERIFY(!c.syncOnDemand()); 0027 QVERIFY(c.localParts().isEmpty()); 0028 } 0029 0030 QTEST_MAIN(CachePolicyTest) 0031 0032 #include "moc_cachepolicytest.cpp"