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 18class CryptTest : public CppUnit::TestCase { 19public: 20 CryptTest(); 21 virtual ~CryptTest(); 22 23 virtual void setUp(); 24 virtual void tearDown(); 25 26 void TestLegacy(); 27 void TestLegacyBSD(); 28 void TestCustomSalt(); 29 void TestSaltGeneration(); 30 void TestBadSalt(); 31 void TestCryptR(); 32 33 static void AddTests(BTestSuite& suite); 34}; 35 36 37#endif // CRYPT_TEST_H 38