diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-09 11:06:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-09 12:05:40 +0000 |
commit | d5c18dc3e8bb107e8ddf960261bb9257f2e49a35 (patch) | |
tree | cd43ceb807794946a79ba33adf51f46104a5e455 /desktop/inc | |
parent | clang-analyzer-deadcode.DeadStores (diff) | |
download | core-d5c18dc3e8bb107e8ddf960261bb9257f2e49a35.tar.gz core-d5c18dc3e8bb107e8ddf960261bb9257f2e49a35.zip |
afl-eventtesting: provide a way to pseudo-restart
i.e. to reset to the initial post-startup state
performance still isn't great unfortunately, 0.7
cycles per second before this, 2.6 after this
Change-Id: Ib9d83b70f0cf052af36a49ed5bacef295fe9ed11
Reviewed-on: https://gerrit.libreoffice.org/19269
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'desktop/inc')
-rw-r--r-- | desktop/inc/app.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/inc/app.hxx b/desktop/inc/app.hxx index 92577f8b6a0d..cd2856689cab 100644 --- a/desktop/inc/app.hxx +++ b/desktop/inc/app.hxx @@ -27,6 +27,7 @@ #include <vcl/timer.hxx> #include <tools/resmgr.hxx> #include <unotools/bootstrap.hxx> +#include <com/sun/star/frame/XDesktop2.hpp> #include <com/sun/star/task/XStatusIndicator.hpp> #include <com/sun/star/uno/Reference.h> #include <osl/mutex.hxx> @@ -156,6 +157,12 @@ class Desktop : public Application */ void CheckFirstRun( ); + /** for ui-testing provide a mechanism to pseudo-restart by closing the + open frames and reopen the frame that appeared post initial startup + */ + void CloseFrameAndReopen(css::uno::Reference<css::frame::XDesktop2> xDesktop); + void DoExecute(css::uno::Reference<css::frame::XDesktop2> xDesktop); + /// does initializations which are necessary for the first run of the office static void DoFirstRunInitializations(); |