File: xmlsec_unit_tests.h

package info (click to toggle)
xmlsec1 1.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,144 kB
  • sloc: ansic: 101,545; xml: 20,100; sh: 3,804; makefile: 1,215; javascript: 434; perl: 199
file content (46 lines) | stat: -rw-r--r-- 865 bytes parent folder | download
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
/**
 * XMLSec library
 *
 * Unit tests
 *
 * See Copyright for the status of this software.
 *
 * Copyright (C) 2002-2024 Aleksey Sanin <aleksey@aleksey.com>. All Rights Reserved.
 */
#ifndef __XMLSEC_UNIT_TESTS_H__
#define __XMLSEC_UNIT_TESTS_H__

#define XMLSEC_PRIVATE 1

#include <xmlsec/xmlsec.h>
#include <xmlsec/errors.h>
#include "../src/cast_helpers.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


/* helper functions */
void testGroupStart(const char * name);
int  testGroupFinished(void);

void testStart(const char * name);
void testFinishedSuccess(void);
void testFinishedFailure(void);


/* tests */
int test_base64(void);
int test_xmlSecX509EscapedStringRead(void);
int test_xmlSecX509AttrValueStringRead(void);
int test_xmlSecX509NameRead(void);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __XMLSEC_UNIT_TESTS_H__ */