1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Commit Graph

119 Commits

Author SHA1 Message Date
Maurice Kalinowski
760b868f21 Fix message with larger size than 255
According to the standard a message has a maximum size of 268435455 and
the size is calculated dynamically.

Update test to verify bigger messages.

Change-Id: I989852cff6d69a9f40f28666c28338402be47a67
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-05-06 06:31:35 +00:00
Maurice Kalinowski
b675472d74 Add simple send and receive test case
The other tests did not verify the message content so far.

Change-Id: I0f49d23a2eb73670a68f1bdb5e371f1e908e2c28
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-05-06 06:31:05 +00:00
Maurice Kalinowski
b365a93c39 Make willMessage a QByteArray
Just like any message to be published, there is no string requirement.
Instead it should be bytearray.

Change-Id: Idf54495930f4780c00e021c108734c18352d962d
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-05-04 10:20:02 +00:00
Maurice Kalinowski
58d000de72 Add getset testfunction
Change-Id: I0c12e80f0f99e1c3f6145ad4176e7e31faaec563
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-04-27 14:23:09 +00:00
Maurice Kalinowski
4b1f0ad535 Move stressTests to benchmarks
This speeds up testing all classes. Benchmarks are not needed all the
time.

Change-Id: I34bb4ae927d5ba9575a5ff1043e1a2fbe05a3c7b
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-04-27 13:57:06 +00:00
Maurice Kalinowski
65a70d6e5f Add/Fix license headers
Change-Id: Ie5192a94a5e3dc3153344f4cf17f4dfb85a386ca
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-04-27 12:40:19 +00:00
Maurice Kalinowski
9de6192bcf Add test for will messages. 2017-04-11 15:56:16 +02:00
Maurice Kalinowski
2c441a542f Add support for retain flag when publishing
Retain causes a message to stay on the server and to be published for
any new subscribers.

Added a test case as well.
2017-04-06 12:07:08 +02:00
Maurice Kalinowski
a1af0a84b8 Add test to verify message acknowledgment 2017-03-29 13:40:49 +02:00
Maurice Kalinowski
c9c34be505 Fix warning 2017-03-24 11:54:04 +01:00
Maurice Kalinowski
ae2872f39c Update error message 2017-03-24 11:08:21 +01:00
Maurice Kalinowski
e37630c17b Cleanup QMqttControlPacket test case
for some reason ended up in a duplicate subdirectory.
2017-03-24 10:51:41 +01:00
Maurice Kalinowski
19682d2e45 Add testcase for QMqttClient 2017-03-24 10:49:50 +01:00
Maurice Kalinowski
c41e8d06ca Add QMqttControlPacket::appendRaw
This allows to add data without internal modification by Qt. For
instance for a non-string based bytestream.
2017-03-23 09:28:02 +01:00
Maurice Kalinowski
fa927c18df Cleanup auto test 2017-03-22 10:18:05 +01:00
Maurice Kalinowski
cc16b02378 Add some tests for append 2017-02-17 08:26:50 +01:00
Maurice Kalinowski
1954071191 A packet header can only have valid command values
Introduce UNKNOWN for setting invalid ones to be able to more easily
check the state of a packet.
2017-01-24 12:45:50 +01:00
Maurice Kalinowski
d15c39fea3 Add initial QMqttControlPacket tests 2017-01-24 12:28:09 +01:00
Maurice Kalinowski
b9f44867a7 Initial commit
rough sketch to get started
2017-01-19 10:27:05 +01:00