mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-07 22:12:59 -04:00
Implement KDBX 4.1 extended custom icons
This commit is contained in:
parent
70e62d90db
commit
390e14b2c6
17 changed files with 137 additions and 48 deletions
|
@ -113,7 +113,7 @@ void TestKeePass2Format::testXmlCustomIcons()
|
|||
QCOMPARE(m_xmlDb->metadata()->customIconsOrder().size(), 1);
|
||||
QUuid uuid = QUuid::fromRfc4122(QByteArray::fromBase64("++vyI+daLk6omox4a6kQGA=="));
|
||||
QVERIFY(m_xmlDb->metadata()->hasCustomIcon(uuid));
|
||||
QByteArray icon = m_xmlDb->metadata()->customIcon(uuid);
|
||||
QByteArray icon = m_xmlDb->metadata()->customIcon(uuid).data;
|
||||
|
||||
QVERIFY(icon.startsWith(
|
||||
"\x89PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\b\x06\x00\x00\x00\x1F\xF3\xFF"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue