2013-10-09 17:11:18 -04:00
|
|
|
/*
|
2018-10-01 10:26:24 -04:00
|
|
|
* Copyright (C) 2018 KeePassXC Team <team@keepassxc.org>
|
2013-10-09 17:11:18 -04:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 or (at your option)
|
|
|
|
* version 3 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-10-01 10:26:24 -04:00
|
|
|
#ifndef KEEPASSXC_TESTSHARING_H
|
|
|
|
#define KEEPASSXC_TESTSHARING_H
|
2013-10-09 17:11:18 -04:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2021-04-04 08:56:00 -04:00
|
|
|
namespace Botan
|
|
|
|
{
|
|
|
|
class RSA_PrivateKey;
|
|
|
|
}
|
2018-10-01 10:26:24 -04:00
|
|
|
class TestSharing : public QObject
|
2013-10-09 17:11:18 -04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2017-03-10 09:58:42 -05:00
|
|
|
private slots:
|
2013-10-09 17:11:18 -04:00
|
|
|
void initTestCase();
|
2018-10-01 10:26:24 -04:00
|
|
|
void testNullObjects();
|
|
|
|
void testKeySerialization();
|
|
|
|
void testReferenceSerialization();
|
|
|
|
void testReferenceSerialization_data();
|
|
|
|
void testSettingsSerialization();
|
|
|
|
void testSettingsSerialization_data();
|
2013-10-09 17:11:18 -04:00
|
|
|
|
|
|
|
private:
|
2021-04-04 08:56:00 -04:00
|
|
|
const QSharedPointer<Botan::RSA_PrivateKey> stubkey(int index = 0);
|
2013-10-09 17:11:18 -04:00
|
|
|
};
|
|
|
|
|
2018-10-01 10:26:24 -04:00
|
|
|
#endif // KEEPASSXC_TESTSHARING_H
|