summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-20 00:51:34 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-20 01:48:47 +0000
commitdade97c9186bd70ec7aefe7e06f54fda11968fec (patch)
treef31c498cb7bafa768f181a04903843bee20176cf /sfx2
parent26ee34d1332e164cf938fcf78902df7d0cc3fe8f (diff)
uitest: use the new ui test logger also for the UNO commands
Change-Id: I220b817df82cd0f26f6d8b72a28b7becfd954461 Reviewed-on: https://gerrit.libreoffice.org/35448 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 3d84cc05edab..acdf7a3b779d 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -53,7 +53,7 @@
#include <osl/mutex.hxx>
#include <uno/current_context.hxx>
#include <vcl/svapp.hxx>
-#include <rtl/bootstrap.hxx>
+#include <vcl/uitest/logger.hxx>
#include <sfx2/app.hxx>
#include <sfx2/unoctitm.hxx>
@@ -609,16 +609,7 @@ void collectUIInformation(const util::URL& rURL, const uno::Sequence<beans::Prop
if (!pFile)
return;
- OUString aCommand = rURL.Protocol + rURL.Path;
-
- OUString aDirPath("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/uitest/");
- rtl::Bootstrap::expandMacros(aDirPath);
- osl::Directory::createPath(aDirPath);
- OUString aFilePath = aDirPath + OUString::fromUtf8(pFile);
-
- SvFileStream aFile(aFilePath, StreamMode::STD_READWRITE);
- aFile.Seek(aFile.Tell() + aFile.remainingSize());
- aFile.WriteLine(OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8));
+ UITestLogger::getInstance().logCommand(rURL.Protocol + rURL.Path);
}
}