gstreamer_core/libs/gst/check/check.h
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    21 
    21 
    22 #ifndef CHECK_H
    22 #ifndef CHECK_H
    23 #define CHECK_H
    23 #define CHECK_H
    24 
    24 
    25 #include <stddef.h>
    25 #include <stddef.h>
    26 #include <stdio.h>
       
    27 
    26 
    28 
    27 
    29 /* Check: a unit test framework for C
    28 /* Check: a unit test framework for C
    30 
    29 
    31    Check is a unit test framework for C. It features a simple
    30    Check is a unit test framework for C. It features a simple
    62 #define CK_CPPSTART extern "C" {
    61 #define CK_CPPSTART extern "C" {
    63 CK_CPPSTART
    62 CK_CPPSTART
    64 #endif
    63 #endif
    65 
    64 
    66 #include <sys/types.h>
    65 #include <sys/types.h>
    67 #include "libgstreamer_wsd_solution.h"
       
    68 
    66 
    69 #if !EMULATOR
       
    70 #ifdef __SYMBIAN32__
       
    71 IMPORT_C
       
    72 #endif
       
    73 FILE** get_fp_std_log();
       
    74 
       
    75 #ifdef __SYMBIAN32__
       
    76 IMPORT_C
       
    77 #endif
       
    78 int* get_assert_failed();
       
    79 
       
    80 #ifdef __SYMBIAN32__
       
    81 IMPORT_C
       
    82 #endif
       
    83 char** get_xmlfile();
       
    84 #endif//EMULATOR
       
    85 
    67 
    86 
    68 
    87 /* Fail the test case unless expr is true */
    69 /* Fail the test case unless expr is true */
    88 /* The space before the comma sign before ## is essential to be compatible
    70 /* The space before the comma sign before ## is essential to be compatible
    89    with gcc 2.95.3 and earlier.
    71    with gcc 2.95.3 and earlier.
   123 IMPORT_C
   105 IMPORT_C
   124 #endif
   106 #endif
   125 
   107 
   126 void _fail_unless (int result, const char *file,
   108 void _fail_unless (int result, const char *file,
   127                    int line, const char *expr, ...);
   109                    int line, const char *expr, ...);
   128 #ifdef __SYMBIAN32__
       
   129 IMPORT_C
       
   130 #endif
       
   131 void send_failure_info(const char* msg, const char* file, int line);
       
   132 
   110 
   133 #ifdef __cplusplus 
   111 #ifdef __cplusplus 
   134 #define CK_CPPEND }
   112 #define CK_CPPEND }
   135 CK_CPPEND
   113 CK_CPPEND
   136 
   114