Functions | Variables
unit1302.c File Reference
#include "curlcheck.h"
#include "urldata.h"
#include "url.h"
#include "curl_base64.h"
#include "memdebug.h"
Include dependency graph for unit1302.c:

Go to the source code of this file.

Functions

 Curl_safefree (output)
 Curl_safefree (decoded)
 fail_if (decoded,"returned pointer should be NULL")
 fail_unless (rc==CURLE_OK,"return code should be CURLE_OK")
 fail_unless (size==4,"size should be 4")
 fail_unless (size==8,"size should be 8")
 fail_unless (size==3,"size should be 3")
 fail_unless (size==2,"size should be 2")
 fail_unless (size==1,"size should be 1")
 fail_unless (rc==CURLE_BAD_CONTENT_ENCODING,"return code should be CURLE_BAD_CONTENT_ENCODING")
 fail_unless (size==0,"size should be 0")
static CURLcode unit_setup (void)
static void unit_stop (void)
 verify_memory (output,"aQ==", 4)
 verify_memory (output,"aWlp", 4)
 verify_memory (decoded,"iiii", 4)
 verify_memory (decoded,"iii", 3)
 verify_memory (decoded,"ii", 2)
 verify_memory (decoded,"i", 2)

Variables

unsigned char anychar = 'x'
static struct Curl_easydata
unsigned char * decoded = &anychar
UNITTEST_START char * output
CURLcode rc = Curl_base64_encode(data, "i", 1, &output, &size)
size_t size = 0

Function Documentation

fail_if ( decoded  ,
"returned pointer should be NULL"   
)
fail_unless ( rc  = =CURLE_OK,
"return code should be CURLE_OK  
)
fail_unless ( size  = =4,
"size should be 4"   
)
fail_unless ( size  = =8,
"size should be 8"   
)
fail_unless ( size  = =3,
"size should be 3"   
)
fail_unless ( size  = =2,
"size should be 2"   
)
fail_unless ( size  = =1,
"size should be 1"   
)
fail_unless ( rc  = =CURLE_BAD_CONTENT_ENCODING,
"return code should be CURLE_BAD_CONTENT_ENCODING  
)
fail_unless ( size  = =0,
"size should be 0"   
)
static CURLcode unit_setup ( void  ) [static]

Definition at line 31 of file unit1302.c.

static void unit_stop ( void  ) [static]

Definition at line 39 of file unit1302.c.

verify_memory ( output  ,
"aWlp"  ,
 
)
verify_memory ( decoded  ,
"iiii"  ,
 
)
verify_memory ( decoded  ,
"iii"  ,
 
)
verify_memory ( decoded  ,
"ii"  ,
 
)
verify_memory ( decoded  ,
"i"  ,
 
)

Variable Documentation

unsigned char anychar = 'x'

Definition at line 49 of file unit1302.c.

struct Curl_easy* data [static]

Definition at line 29 of file unit1302.c.

Definition at line 47 of file unit1302.c.

Definition at line 46 of file unit1302.c.

rc = Curl_base64_encode(data, "i", 1, &output, &size)

Definition at line 50 of file unit1302.c.

size = 0

Definition at line 48 of file unit1302.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09