11#include <gwenhywfar/testframework.h>
12#include <gwenhywfar/text.h>
17#ifdef GWENHYWFAR_ENABLE_TESTCODE
60 uint32_t value1=0x01234567;
90 uint64_t value1=0x0123456789abcdefLL;
104 if (value2!=value1) {
106 (
unsigned long int) value2, (
unsigned long int) value1);
121 const char *value1=
"This is a test";
141 if (strcmp(value1, value2)!=0) {
159 const char *value1=
"This is a test";
160 uint32_t value2=0x12345678;
161 uint64_t value3=0x0123456789abcdefLL;
196 if (strcmp(value1, value)!=0) {
220 (
unsigned long int) value, (
unsigned long int) value2);
241 (
unsigned long int) value, (
unsigned long int) value3);
260 const char *value1=
"This is a test";
289 if (strcmp(value1, value2)!=0) {
GWEN_BUFFER * GWEN_Buffer_new(char *buffer, uint32_t size, uint32_t used, int take)
void GWEN_Buffer_Rewind(GWEN_BUFFER *bf)
void GWEN_Buffer_free(GWEN_BUFFER *bf)
int GWEN_Buffer_AppendString(GWEN_BUFFER *bf, const char *buffer)
uint32_t GWEN_Buffer_GetUsedBytes(const GWEN_BUFFER *bf)
char * GWEN_Buffer_GetStart(const GWEN_BUFFER *bf)
#define DBG_ERROR(dbg_logger, format,...)
#define GWEN_ERROR_GENERIC
int test5(int argc, char **argv)
int test2(int argc, char **argv)
int test4(int argc, char **argv)
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
int test3(int argc, char **argv)
void GWEN_Tag16_List_free(GWEN_TAG16_LIST *l)
int GWEN_Tag16_AddTests(GWEN_TEST_MODULE *mod)
void GWEN_Tag16_WriteStringTagToBuffer(unsigned int tagType, const char *s, GWEN_BUFFER *buf)
uint64_t GWEN_Tag16_GetTagDataAsUint64(const GWEN_TAG16 *tag, uint64_t defaultValue)
GWEN_TAG16 * GWEN_Tag16_fromBuffer(GWEN_BUFFER *mbuf, GWEN_UNUSED int isBerTlv)
char * GWEN_Tag16_GetTagDataAsNewString(const GWEN_TAG16 *tag, const char *defaultValue)
int GWEN_Tag16_StartTagInBuffer(unsigned int tagType, GWEN_BUFFER *buf)
void GWEN_Tag16_WriteUint32TagToBuffer(unsigned int tagType, uint32_t data, GWEN_BUFFER *buf)
uint32_t GWEN_Tag16_GetTagDataAsUint32(const GWEN_TAG16 *tag, uint32_t defaultValue)
GWEN_TAG16_LIST * GWEN_Tag16_List_fromBuffer(const uint8_t *p, uint32_t l, int doCopy)
int GWEN_Tag16_EndTagInBuffer(int startPos, GWEN_BUFFER *buf)
const GWEN_TAG16 * GWEN_Tag16_List_FindFirstByTagType(const GWEN_TAG16_LIST *tagList, unsigned int tagType)
void GWEN_Tag16_WriteUint64TagToBuffer(unsigned int tagType, uint64_t data, GWEN_BUFFER *buf)
struct GWEN_TAG16 GWEN_TAG16
GWEN_TEST_MODULE * GWEN_Test_Module_AddModule(GWEN_TEST_MODULE *st, const char *tName, const char *tDescr)
GWEN_TEST_MODULE * GWEN_Test_Module_AddTest(GWEN_TEST_MODULE *st, const char *tName, GWEN_TEST_MODULE_TEST_FN fn, const char *tDescr)
struct GWEN_TEST_MODULE GWEN_TEST_MODULE
void GWEN_Text_LogString(const char *s, unsigned int l, const char *logDomain, GWEN_LOGGER_LEVEL lv)