diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-10-20 11:32:17 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-10-22 15:54:02 +0200 |
commit | 62f47c26ad096cf088b545f10e14f9d81e2f2cc1 (patch) | |
tree | 3e3e70e924b4075adb9b351042f658e132d1c4bc /include/test | |
parent | ignore invalidations in Writer when doing tiled painting (diff) | |
download | core-62f47c26ad096cf088b545f10e14f9d81e2f2cc1.tar.gz core-62f47c26ad096cf088b545f10e14f9d81e2f2cc1.zip |
properly flush LOK invalidations in tests
This should be done always before doing something with a flag
related to the invalidations. Use an idle timer for simplicity,
tests already usually process to idle.
Change-Id: I979900da28061cc690ecbcce023dbb769239f205
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124003
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/test')
-rw-r--r-- | include/test/lokcallback.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/test/lokcallback.hxx b/include/test/lokcallback.hxx index f7a619f68cb3..f7372bc7ec80 100644 --- a/include/test/lokcallback.hxx +++ b/include/test/lokcallback.hxx @@ -13,6 +13,7 @@ #include <test/testdllapi.hxx> #include <LibreOfficeKit/LibreOfficeKitTypes.h> #include <sfx2/lokcallback.hxx> +#include <vcl/idle.hxx> /** A helper to convert SfxLokCallbackInterface to a LIbreOfficeKitCallback for tests. @@ -21,7 +22,7 @@ It reimplements the specialized callbacks and converts them to the generic type/ callback. */ -class OOO_DLLPUBLIC_TEST TestLokCallbackWrapper : public SfxLokCallbackInterface +class OOO_DLLPUBLIC_TEST TestLokCallbackWrapper final : public SfxLokCallbackInterface, public Idle { public: TestLokCallbackWrapper(LibreOfficeKitCallback callback, void* data); @@ -30,6 +31,7 @@ public: int nViewId) override; virtual void libreOfficeKitViewInvalidateTilesCallback(const tools::Rectangle* pRect, int nPart) override; + virtual void Invoke() override; private: void callCallback(int nType, const char* pPayload); |