1 /* 2 * Copyright 2017, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Andrew Aldridge, i80and@foxquill.com 7 */ 8 9 10 #ifndef CRYPT_TEST_H 11 #define CRYPT_TEST_H 12 13 14 #include <TestCase.h> 15 #include <TestSuite.h> 16 17 18 class CryptTest : public CppUnit::TestCase { 19 public: 20 CryptTest(); 21 virtual ~CryptTest(); 22 23 virtual void setUp(); 24 virtual void tearDown(); 25 26 void TestLegacy(); 27 void TestCustomSalt(); 28 void TestSaltGeneration(); 29 void TestBadSalt(); 30 31 static void AddTests(BTestSuite& suite); 32 }; 33 34 35 #endif // CRYPT_TEST_H 36