diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-10-05 21:39:51 +0200 |
---|---|---|
committer | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-10-05 22:09:39 +0200 |
commit | cca74bebb675e2e68b73c78d7f579e67310487c1 (patch) | |
tree | 884dbf03664162971105e2717baa7d5cca6bc32e /tests | |
parent | a09f1e32caeef4f5d8cef0a067cb760c188883f0 (diff) | |
download | qtwebsockets-cca74bebb675e2e68b73c78d7f579e67310487c1.tar.gz |
Added some tests
Change-Id: I598de5c955eb8c5224035fd9c2469b132c39d06c
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/dataprocessor/tst_dataprocessor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/dataprocessor/tst_dataprocessor.cpp b/tests/auto/dataprocessor/tst_dataprocessor.cpp index 1ab0ece..7fe384d 100644 --- a/tests/auto/dataprocessor/tst_dataprocessor.cpp +++ b/tests/auto/dataprocessor/tst_dataprocessor.cpp @@ -14,9 +14,9 @@ Q_DECLARE_METATYPE(QWebSocketProtocol::OpCode) //TODO: test valid UTF8 sequences (see UC 6.2) //TODO: test on masking correctness //TODO: test for valid fields -//TODO: test for valid opcodes +//TODO: test for valid control frames //DONE: test for valid close codes -//TODO: test close frame with no close code and reason +//DONE: test close frame with no close code and reason //TODO: test if opcode is correct after processing of a continuation frame (text and binary frames) //TODO: test valid frame sequences @@ -241,7 +241,6 @@ void tst_DataProcessor::goodBinaryFrame_data() void tst_DataProcessor::goodCloseFrame_data() { - //TODO: still to test with no close code and no close reason (is valid) QTest::addColumn<QString>("payload"); QTest::addColumn<QWebSocketProtocol::CloseCode>("closeCode"); //control frame data cannot exceed 125 bytes; smaller than 124, because we also need a 2 byte close code |