Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Bertrand Varin <louisbvarin@gmail.com>2018-03-31 23:01:30 +0300
committerLouis-Bertrand Varin <louisbvarin@gmail.com>2018-03-31 23:01:30 +0300
commit8324d03f0a015e62b6182843b4478226a5197090 (patch)
treefaf34febaec7c7e764d357dc5e439f6f2b1fcaf3 /tests/TestKeePass2Format.cpp
parent74efc57369b068a0f93cb84ac68b6c17f64c8abe (diff)
Formatting the code.
Diffstat (limited to 'tests/TestKeePass2Format.cpp')
-rw-r--r--tests/TestKeePass2Format.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/tests/TestKeePass2Format.cpp b/tests/TestKeePass2Format.cpp
index 266047bec..9dac07691 100644
--- a/tests/TestKeePass2Format.cpp
+++ b/tests/TestKeePass2Format.cpp
@@ -20,8 +20,8 @@
#include "core/Metadata.h"
#include "crypto/Crypto.h"
-#include "keys/PasswordKey.h"
#include "format/KdbxXmlReader.h"
+#include "keys/PasswordKey.h"
#include "FailDevice.h"
#include "config-keepassx-tests.h"
@@ -402,11 +402,15 @@ void TestKeePass2Format::testXmlInvalidXmlChars()
{
QScopedPointer<Database> dbWrite(new Database());
- QString strPlainInvalid = QString().append(QChar(0x02)).append(QChar(0x19))
- .append(QChar(0xFFFE)).append(QChar(0xFFFF));
- QString strPlainValid = QString().append(QChar(0x09)).append(QChar(0x0A))
- .append(QChar(0x20)).append(QChar(0xD7FF))
- .append(QChar(0xE000)).append(QChar(0xFFFD));
+ QString strPlainInvalid =
+ QString().append(QChar(0x02)).append(QChar(0x19)).append(QChar(0xFFFE)).append(QChar(0xFFFF));
+ QString strPlainValid = QString()
+ .append(QChar(0x09))
+ .append(QChar(0x0A))
+ .append(QChar(0x20))
+ .append(QChar(0xD7FF))
+ .append(QChar(0xE000))
+ .append(QChar(0xFFFD));
// U+10437 in UTF-16: D801 DC37
// high low surrogate
QString strSingleHighSurrogate1 = QString().append(QChar(0xD801));
@@ -416,8 +420,8 @@ void TestKeePass2Format::testXmlInvalidXmlChars()
QString strSingleLowSurrogate2 = QString().append(QChar((0x31))).append(QChar(0xDC37)).append(QChar(0x32));
QString strLowLowSurrogate = QString().append(QChar(0xDC37)).append(QChar(0xDC37));
QString strSurrogateValid1 = QString().append(QChar(0xD801)).append(QChar(0xDC37));
- QString strSurrogateValid2 = QString().append(QChar(0x31)).append(QChar(0xD801)).append(QChar(0xDC37))
- .append(QChar(0x32));
+ QString strSurrogateValid2 =
+ QString().append(QChar(0x31)).append(QChar(0xD801)).append(QChar(0xDC37)).append(QChar(0x32));
auto entry = new Entry();
entry->setUuid(Uuid::random());
@@ -532,7 +536,8 @@ void TestKeePass2Format::testKdbxAttachments()
void TestKeePass2Format::testKdbxNonAsciiPasswords()
{
- QCOMPARE(m_kdbxTargetDb->rootGroup()->entries()[0]->password(), m_kdbxSourceDb->rootGroup()->entries()[0]->password());
+ QCOMPARE(m_kdbxTargetDb->rootGroup()->entries()[0]->password(),
+ m_kdbxSourceDb->rootGroup()->entries()[0]->password());
}
void TestKeePass2Format::testKdbxDeviceFailure()