| 1 |
|
| 2 |
nn |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#include <glib.h> |
| 21 |
#include <glib-object.h> |
| 22 |
|
| 23 |
#include <CUnit/CUnit.h> |
| 24 |
#include <CUnit/Automated.h> |
| 25 |
#include <CUnit/Basic.h> |
| 26 |
|
| 27 |
#include <ags/libags.h> |
| 28 |
#include <ags/libags-audio.h> |
| 29 |
|
| 30 |
#include <math.h> |
| 31 |
|
| 32 |
int ags_fx_eq10_recycling_test_init_suite(); |
| 33 |
int ags_fx_eq10_recycling_test_clean_suite(); |
| 34 |
|
| 35 |
void ags_fx_eq10_recycling_test_new(); |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
int |
| 42 |
ags_fx_eq10_recycling_test_init_suite() |
| 43 |
{ |
| 44 |
return(0); |
| 45 |
} |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
int |
| 52 |
ags_fx_eq10_recycling_test_clean_suite() |
| 53 |
{ |
| 54 |
return(0); |
| 55 |
} |
| 56 |
|
| 57 |
void |
| 58 |
ags_fx_eq10_recycling_test_new() |
| 59 |
{ |
| 60 |
AgsRecycling *recycling; |
| 61 |
AgsFxEq10Recycling *fx_eq10_recycling; |
| 62 |
|
| 63 |
recycling = g_object_new(AGS_TYPE_RECYCLING, |
| 64 |
NULL); |
| 65 |
|
| 66 |
fx_eq10_recycling = ags_fx_eq10_recycling_new(recycling); |
| 67 |
|
| 68 |
CU_ASSERT(fx_eq10_recycling != NULL); |
| 69 |
CU_ASSERT(AGS_RECALL_RECYCLING(fx_eq10_recycling)->source == recycling); |
| 70 |
|
| 71 |
CU_ASSERT(AGS_RECALL(fx_eq10_recycling)->child_type == AGS_TYPE_FX_EQ10_AUDIO_SIGNAL); |
| 72 |
} |
| 73 |
|
| 74 |
int |
| 75 |
main(int argc, char **argv) |
| 76 |
{ |
| 77 |
CU_pSuite pSuite = NULL; |
| 78 |
|
| 79 |
putenv("LC_ALL=C"); |
| 80 |
putenv("LANG=C"); |
| 81 |
|
| 82 |
putenv("LADSPA_PATH=\"\""); |
| 83 |
putenv("DSSI_PATH=\"\""); |
| 84 |
putenv("LV2_PATH=\"\""); |
| 85 |
|
| 86 |
|
| 87 |
if(CUE_SUCCESS != CU_initialize_registry()){ |
| 88 |
return CU_get_error(); |
| 89 |
} |
| 90 |
|
| 91 |
|
| 92 |
pSuite = CU_add_suite("AgsFxEq10RecyclingTest", ags_fx_eq10_recycling_test_init_suite, ags_fx_eq10_recycling_test_clean_suite); |
| 93 |
|
| 94 |
if(pSuite == NULL){ |
| 95 |
CU_cleanup_registry(); |
| 96 |
|
| 97 |
return CU_get_error(); |
| 98 |
} |
| 99 |
|
| 100 |
|
| 101 |
if((CU_add_test(pSuite, "test of AgsFxEq10Recycling new", ags_fx_eq10_recycling_test_new) == NULL)){ |
| 102 |
CU_cleanup_registry(); |
| 103 |
|
| 104 |
return CU_get_error(); |
| 105 |
} |
| 106 |
|
| 107 |
|
| 108 |
CU_basic_set_mode(CU_BRM_VERBOSE); |
| 109 |
CU_basic_run_tests(); |
| 110 |
|
| 111 |
CU_cleanup_registry(); |
| 112 |
|
| 113 |
return(CU_get_error()); |
| 114 |
} |