-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_sha1.h
62 lines (52 loc) · 1.7 KB
/
test_sha1.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/***************************************************************************************************************************************
* FILE NAME: test_sha1.h
*
* Copyright (c) 2016 Anders Nordenfelt
*
* DATE: 2016-08-16
*
* CONTENT: Declares the tests contained in test_sha1.cpp of the functions SHA1_Concat, SHA1 and HMAC_SHA1 contained in sha1.h and sha1.c
*
**************************************************************************************************************************************/
#ifndef __TEST_SHA1__
#define __TEST_SHA1__
#include <iostream>
#include <string>
#include <stdint.h>
#include "string.h"
#include "stdlib.h"
#include "time.h"
#include <cppunit/TextOutputter.h>
#include <cppunit/TextTestRunner.h>
#include <cppunit/TestResultCollector.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestFailure.h>
#include <cppunit/TestCase.h>
#include <cppunit/TestSuite.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestRunner.h>
#include <cppunit/extensions/HelperMacros.h>
class Test_SHA1 : public CppUnit::TestCase {
public:
CPPUNIT_TEST_SUITE( Test_SHA1 );
CPPUNIT_TEST( SHA1_Concat_test1 );
CPPUNIT_TEST( SHA1_Concat_test2 );
CPPUNIT_TEST( SHA1_Concat_test3 );
CPPUNIT_TEST( SHA1_test1 );
CPPUNIT_TEST( SHA1_test2 );
CPPUNIT_TEST( SHA1_File_test1 );
CPPUNIT_TEST( HMAC_SHA1_test1 );
CPPUNIT_TEST( HMAC_SHA1_test2 );
CPPUNIT_TEST( HMAC_SHA1_test3 );
CPPUNIT_TEST_SUITE_END();
void SHA1_Concat_test1();
void SHA1_Concat_test2();
void SHA1_Concat_test3();
void SHA1_test1();
void SHA1_test2();
void SHA1_File_test1();
void HMAC_SHA1_test1();
void HMAC_SHA1_test2();
void HMAC_SHA1_test3();
};
#endif