File indexing completed on 2024-11-24 04:44:10

0001 /*
0002  * SPDX-FileCopyrightText: 2012 Christian Mollekopf <mollekopf@kolabsys.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-3.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 /**
0012  * Test format upgrade from v2 to v3
0013  *
0014  * - Parse using v2 implementation
0015  * - Serialize and reparse using v3 implementation
0016  * - Compare results
0017  *
0018  * This ensures that all properties which are interpreted by the v2 implementation can be serialized and deserialized by the v3 implementation.
0019  *
0020  * Depends on serialization used for comparison to be correct (i.e. the ical implementation).
0021  */
0022 
0023 class UpgradeTest : public QObject
0024 {
0025     Q_OBJECT
0026 private Q_SLOTS:
0027 
0028     void testIncidence_data();
0029     void testIncidence();
0030 
0031     void testContact_data();
0032     void testContact();
0033 };