summaryrefslogtreecommitdiff
path: root/tests/auto/websocketprotocol/tst_websocketprotocol.cpp
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-18 20:50:48 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 13:22:46 +0100
commit1941de4eaff86a096b1720ad10fa5a633bf77243 (patch)
tree860464b02d1ee649806e0aed15606fe3bbc1e727 /tests/auto/websocketprotocol/tst_websocketprotocol.cpp
parentab0704e1559c316e65b4bce4e1ab913cdee4dfa2 (diff)
downloadqtwebsockets-1941de4eaff86a096b1720ad10fa5a633bf77243.tar.gz
Limit line length to 100 chars per line
Change-Id: I2a91033c9882ca54c6fcf26d9eb5a3c91f9e0f7d Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'tests/auto/websocketprotocol/tst_websocketprotocol.cpp')
-rw-r--r--tests/auto/websocketprotocol/tst_websocketprotocol.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/auto/websocketprotocol/tst_websocketprotocol.cpp b/tests/auto/websocketprotocol/tst_websocketprotocol.cpp
index c092afa..eea434b 100644
--- a/tests/auto/websocketprotocol/tst_websocketprotocol.cpp
+++ b/tests/auto/websocketprotocol/tst_websocketprotocol.cpp
@@ -102,10 +102,20 @@ void tst_WebSocketProtocol::tst_validMasks_data()
QTest::addColumn<QByteArray>("result");
QTest::newRow("Empty payload") << 0x12345678u << QString() << QByteArray();
- QTest::newRow("ASCII payload of 8 characters") << 0x12345678u << QStringLiteral("abcdefgh") << QByteArrayLiteral("\x73\x56\x35\x1C\x77\x52\x31\x10");
- QTest::newRow("ASCII payload of 9 characters") << 0x12345678u << QStringLiteral("abcdefghi") << QByteArrayLiteral("\x73\x56\x35\x1C\x77\x52\x31\x10\x7B");
- //MSVC doesn't like UTF-8 in source code; the following text is represented in the string below: ∫∂ƒ©øØ
- QTest::newRow("UTF-8 payload") << 0x12345678u << QString::fromUtf8("\xE2\x88\xAB\xE2\x88\x82\xC6\x92\xC2\xA9\xC3\xB8\xC3\x98") << QByteArrayLiteral("\x2D\x0B\x69\xD1\xEA\xEC");
+ QTest::newRow("ASCII payload of 8 characters")
+ << 0x12345678u
+ << QStringLiteral("abcdefgh")
+ << QByteArrayLiteral("\x73\x56\x35\x1C\x77\x52\x31\x10");
+ QTest::newRow("ASCII payload of 9 characters")
+ << 0x12345678u
+ << QStringLiteral("abcdefghi")
+ << QByteArrayLiteral("\x73\x56\x35\x1C\x77\x52\x31\x10\x7B");
+ //MSVC doesn't like UTF-8 in source code;
+ //the following text is represented in the string below: ∫∂ƒ©øØ
+ QTest::newRow("UTF-8 payload")
+ << 0x12345678u
+ << QString::fromUtf8("\xE2\x88\xAB\xE2\x88\x82\xC6\x92\xC2\xA9\xC3\xB8\xC3\x98")
+ << QByteArrayLiteral("\x2D\x0B\x69\xD1\xEA\xEC");
}
void tst_WebSocketProtocol::tst_validMasks()