#include #include #include "Swiften/StringCodecs/SHA1.h" using namespace Swift; class SHA1Test : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(SHA1Test); CPPUNIT_TEST(testGetBinaryHash); CPPUNIT_TEST(testGetBinaryHash_Twice); CPPUNIT_TEST(testGetHexHash); CPPUNIT_TEST(testGetHexHash_NoData); CPPUNIT_TEST_SUITE_END(); public: SHA1Test() {} void testGetBinaryHash() { ByteArray result(SHA1::getBinaryHash("client/pc//Exodus 0.9.1