diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2014-11-04 12:36:46 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-11-12 08:59:03 +0000 |
commit | e65790ddcf90ee243bf74f8f906c7b12a7fda901 (patch) | |
tree | a921b85a26dc38ebdc273d63cd24dbef3fc3d3d8 /test | |
parent | c18a2a239ecb41cd6f8c07d086f15cde0cffdbe1 (diff) |
perfcheck instrument existing test : replaceAll
Change-Id: I7766aa6d69810124b27763912c3e7a8399637280
Reviewed-on: https://gerrit.libreoffice.org/12243
Reviewed-by: Matúš Kukan <matus.kukan@collabora.com>
Tested-by: Matúš Kukan <matus.kukan@collabora.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/util/xreplaceable.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/source/util/xreplaceable.cxx b/test/source/util/xreplaceable.cxx index 42a31102a649..598a7ddf46ec 100644 --- a/test/source/util/xreplaceable.cxx +++ b/test/source/util/xreplaceable.cxx @@ -16,6 +16,8 @@ #include <iostream> +#include <test/callgrind.hxx> + using namespace css; using namespace css::uno; @@ -50,7 +52,9 @@ void XReplaceable::testReplaceAll() xReplaceDescr->setSearchString(maSearchString); xReplaceDescr->setReplaceString(maReplaceString); + callgrindStart(); xReplaceable->replaceAll(uno::Reference< util::XSearchDescriptor >(xReplaceDescr, UNO_QUERY_THROW)); + callgrindDump("replaceAll"); //check that now at least one element is found xElement = xReplaceable->findFirst(xSearchDescr); |