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

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-04-16 22:02:25 +0300
committerRobert Adam <dev@robert-adam.de>2021-04-16 22:05:52 +0300
commit923045ac6029bc7433c60ce2fad5a35e025beedd (patch)
treeabf6a4001f7b795242e49b619fc3ffb6c0623633 /src/tests
parentd4a5fc1047837ce2018a6381e0e74a51f65b2a8f (diff)
FORMAT: Run clang-format 10 on all source files
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/TestCrypt/TestCrypt.cpp4
-rw-r--r--src/tests/TestXMLTools/TestXMLTools.cpp12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/TestCrypt/TestCrypt.cpp b/src/tests/TestCrypt/TestCrypt.cpp
index 2361da968..16b01240e 100644
--- a/src/tests/TestCrypt/TestCrypt.cpp
+++ b/src/tests/TestCrypt/TestCrypt.cpp
@@ -265,8 +265,8 @@ void TestCrypt::xexstarAttack() {
}
// Actual content should have been changed such that the critical block is no longer all 0.
- QCOMPARE(src[0], static_cast<unsigned char>(0));
- QCOMPARE(decrypted[0], static_cast<unsigned char>(1));
+ QCOMPARE(src[0], static_cast< unsigned char >(0));
+ QCOMPARE(decrypted[0], static_cast< unsigned char >(1));
}
void TestCrypt::tamper() {
diff --git a/src/tests/TestXMLTools/TestXMLTools.cpp b/src/tests/TestXMLTools/TestXMLTools.cpp
index de4e8b588..1524d7d30 100644
--- a/src/tests/TestXMLTools/TestXMLTools.cpp
+++ b/src/tests/TestXMLTools/TestXMLTools.cpp
@@ -107,13 +107,13 @@ void TestXMLTools::testParseConvertStyleBold() {
QLatin1String("<b>one</b>"));
// These currently fail
// QCOMPARE(doParse(QLatin1String("<html><head></head><body><span
- //style=\"font-weight:700;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
+ // style=\"font-weight:700;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
// QCOMPARE(doParse(QLatin1String("<html><head></head><body><span
- //style=\"font-weight:800;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
+ // style=\"font-weight:800;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
// QCOMPARE(doParse(QLatin1String("<html><head></head><body><span
- //style=\"font-weight:900;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
+ // style=\"font-weight:900;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
// QCOMPARE(doParse(QLatin1String("<html><head></head><body><span
- //style=\"font-weight:bold;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
+ // style=\"font-weight:bold;\">one</span></body></html>")), QLatin1String("<b>one</b>"));
}
void TestXMLTools::testParseConvertStyleUnderline() {
@@ -150,7 +150,7 @@ void TestXMLTools::testParseDropEmptyFirstParagraphs() {
QLatin1String("<div>one</div>"));
// <br> would be invalid XML. It is not dropped "correctly".
// QCOMPARE(doParse(QLatin1String("<html><head></head><body><p><br></p><p>one</p></body></html>")),
- //QLatin1String("<p>one</p>"));
+ // QLatin1String("<p>one</p>"));
// This is different from what is expected from a comment in the method being tested. It says
// contents of empty paragraph would be dropped as well, but the br/space persists.
QCOMPARE(doParse(QLatin1String("<html><head></head><body><p><br/></p><p>one</p></body></html>")),
@@ -275,7 +275,7 @@ void TestXMLTools::testUndupStandard() {
// Will warn and fail.
// void TestXMLTools::testUndupInvalidXml1() {
// QCOMPARE(doUnduplicate(QLatin1String("<unduplicate><b>bold with <i></b>italic</i></unduplicate>")),
-//QLatin1String("<b>bold with <i>italic</i></b>"));
+// QLatin1String("<b>bold with <i>italic</i></b>"));
//}
QTEST_MAIN(TestXMLTools)