| 307 | } |
| 308 | |
| 309 | void BinaryLoggerTest::testBinaryClassLogger() |
| 310 | { |
| 311 | auto clogger = logger(); |
| 312 | |
| 313 | clogger->debug(QByteArray("Hello world!")); |
| 314 | |
| 315 | char expected[] = {0x0c, 0x00, 0x00, 0x00, 0x48, 0x65, 0x6c, 0x6c, |
| 316 | 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x21 |
| 317 | }; |
| 318 | |
| 319 | QCOMPARE(flushLogger(clogger), QByteArray(expected, elementsInArray(expected))); |
| 320 | } |
| 321 | |
| 322 | void BinaryLoggerTest::testBinaryLayout() |
| 323 | { |
nothing calls this directly
no test coverage detected