revert unittests to use plain text-based LibreOfficeKitCallback
commita21c6a3dd36aee21bf1536183dc8ccde2ff52672
authorLuboš Luňák <l.lunak@collabora.com>
Thu, 21 Oct 2021 10:09:56 +0000 (21 12:09 +0200)
committerLuboš Luňák <l.lunak@collabora.com>
Fri, 22 Oct 2021 13:53:21 +0000 (22 15:53 +0200)
tree4362424f8ba2e52eb7c9c971d51d0ce797594cf4
parent71a24a911bb091885fb03d124d3936d955b13399
revert unittests to use plain text-based LibreOfficeKitCallback

At least for now it seems that the more complex
SfxLokCallbackInterface is just an unnecessary complication for unit
tests. The performance doesn't matter, and handling all the
specialized callbacks makes things more complicated. In the future
it'd be also useful to make the tests (optionally?) use also
CallbackFlushHandler as the provider of the messages, in order
to test CallbackFlushHandler more thoroughly, so perhaps in the end
it makes more sense to keep unit tests using the plain text interface.

This reverts unittest-related parts of 3b729db05553c1a6d461fb41c89
and adds a smaller wrapper callback class that converts messages
from SfxLokCallbackInterface to LibreOfficeKitCallback format.

Change-Id: I6c14f0be4ed7b777444b131140be54188d309cca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124000
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
include/test/lokcallback.hxx [new file with mode: 0644]
sc/qa/unit/tiledrendering/tiledrendering.cxx
sd/qa/unit/tiledrendering/CallbackRecorder.hxx
sd/qa/unit/tiledrendering/tiledrendering.cxx
sw/qa/core/txtnode/txtnode.cxx
sw/qa/extras/tiledrendering/tiledrendering.cxx
test/Library_test.mk
test/source/lokcallback.cxx [new file with mode: 0644]