summaryrefslogtreecommitdiff
path: root/comphelper/qa/unit
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-02-26 12:14:03 +0100
committerEike Rathke <erack@redhat.com>2018-02-26 12:15:17 +0100
commit384954795c4f3c0641f4b0eb7cff6f27ebfbb5de (patch)
treef315c0b702c74f16ea4eb5d2bd084919eeb317de /comphelper/qa/unit
parentf1a11b9ce9dda2a57bc77d3bf38167a31feff8f1 (diff)
Move convenience abstractions to DocPasswordHelper, tdf#104250 follow-up
Change-Id: If0775ccf14b631918e51342a767412948e812c87
Diffstat (limited to 'comphelper/qa/unit')
-rw-r--r--comphelper/qa/unit/test_hash.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/qa/unit/test_hash.cxx b/comphelper/qa/unit/test_hash.cxx
index e15b906c190f..11dcbd0bd10f 100644
--- a/comphelper/qa/unit/test_hash.cxx
+++ b/comphelper/qa/unit/test_hash.cxx
@@ -8,6 +8,7 @@
*/
#include <comphelper/hash.hxx>
+#include <comphelper/docpasswordhelper.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
@@ -111,7 +112,7 @@ void TestHash::testSHA512_saltspin()
const OUString aPass("pwd");
const OUString aAlgo("SHA-512");
const OUString aSalt("876MLoKTq42+/DLp415iZQ==");
- const OUString aHash = comphelper::Hash::calculateHashBase64( aPass, aSalt, 100000, aAlgo);
+ const OUString aHash = comphelper::DocPasswordHelper::GetOoxHashAsBase64( aPass, aSalt, 100000, aAlgo);
const OUString aStr("5l3mgNHXpWiFaBPv5Yso1Xd/UifWvQWmlDnl/hsCYbFT2sJCzorjRmBCQ/3qeDu6Q/4+GIE8a1DsdaTwYh1q2g==");
CPPUNIT_ASSERT_EQUAL(aStr, aHash);
}