@@ -47,12 +47,6 @@ pub fn assertion_message_cmpstr(domain: &str, file: &str, line: i32, func: &str,
47
47
}
48
48
}
49
49
50
- pub fn assertion_message_expr ( domain : Option < & str > , file : & str , line : i32 , func : & str , expr : Option < & str > ) {
51
- unsafe {
52
- ffi:: g_assertion_message_expr ( domain. to_glib_none ( ) . 0 , file. to_glib_none ( ) . 0 , line, func. to_glib_none ( ) . 0 , expr. to_glib_none ( ) . 0 ) ;
53
- }
54
- }
55
-
56
50
pub fn base64_decode ( text : & str ) -> Vec < u8 > {
57
51
unsafe {
58
52
let mut out_len = mem:: uninitialized ( ) ;
@@ -1056,214 +1050,6 @@ pub fn stpcpy(dest: &str, src: &str) -> Option<GString> {
1056
1050
}
1057
1051
}
1058
1052
1059
- //pub fn test_add_data_func<P: FnOnce() + Send + Sync + 'static>(testpath: &str, test_data: /*Unimplemented*/Option<Fundamental: Pointer>, test_func: P) {
1060
- // unsafe { TODO: call ffi::g_test_add_data_func() }
1061
- //}
1062
-
1063
- //pub fn test_add_data_func_full<P: Fn() + Send + Sync + 'static>(testpath: &str, test_data: /*Unimplemented*/Option<Fundamental: Pointer>, test_func: P) {
1064
- // unsafe { TODO: call ffi::g_test_add_data_func_full() }
1065
- //}
1066
-
1067
- //pub fn test_add_func<P: FnOnce() + Send + Sync + 'static>(testpath: &str, test_func: P) {
1068
- // unsafe { TODO: call ffi::g_test_add_func() }
1069
- //}
1070
-
1071
- //pub fn test_add_vtable(testpath: &str, data_size: usize, test_data: /*Unimplemented*/Option<Fundamental: Pointer>, data_setup: /*Unimplemented*/Fn(/*Unimplemented*/Fundamental: Pointer), data_test: /*Unimplemented*/Fn(/*Unimplemented*/Fundamental: Pointer), data_teardown: /*Unimplemented*/Fn(/*Unimplemented*/Fundamental: Pointer)) {
1072
- // unsafe { TODO: call ffi::g_test_add_vtable() }
1073
- //}
1074
-
1075
- pub fn test_assert_expected_messages_internal ( domain : & str , file : & str , line : i32 , func : & str ) {
1076
- unsafe {
1077
- ffi:: g_test_assert_expected_messages_internal ( domain. to_glib_none ( ) . 0 , file. to_glib_none ( ) . 0 , line, func. to_glib_none ( ) . 0 ) ;
1078
- }
1079
- }
1080
-
1081
- pub fn test_bug ( bug_uri_snippet : & str ) {
1082
- unsafe {
1083
- ffi:: g_test_bug ( bug_uri_snippet. to_glib_none ( ) . 0 ) ;
1084
- }
1085
- }
1086
-
1087
- pub fn test_bug_base ( uri_pattern : & str ) {
1088
- unsafe {
1089
- ffi:: g_test_bug_base ( uri_pattern. to_glib_none ( ) . 0 ) ;
1090
- }
1091
- }
1092
-
1093
- //pub fn test_build_filename(file_type: /*Ignored*/TestFileType, first_path: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option<GString> {
1094
- // unsafe { TODO: call ffi::g_test_build_filename() }
1095
- //}
1096
-
1097
- //pub fn test_create_case(test_name: &str, data_size: usize, test_data: /*Unimplemented*/Option<Fundamental: Pointer>, data_setup: /*Unimplemented*/FnOnce(/*Unimplemented*/Fundamental: Pointer), data_test: /*Unimplemented*/FnOnce(/*Unimplemented*/Fundamental: Pointer), data_teardown: /*Unimplemented*/FnOnce(/*Unimplemented*/Fundamental: Pointer)) -> /*Ignored*/Option<TestCase> {
1098
- // unsafe { TODO: call ffi::g_test_create_case() }
1099
- //}
1100
-
1101
- //pub fn test_create_suite(suite_name: &str) -> /*Ignored*/Option<TestSuite> {
1102
- // unsafe { TODO: call ffi::g_test_create_suite() }
1103
- //}
1104
-
1105
- //pub fn test_expect_message(log_domain: Option<&str>, log_level: /*Ignored*/LogLevelFlags, pattern: &str) {
1106
- // unsafe { TODO: call ffi::g_test_expect_message() }
1107
- //}
1108
-
1109
- pub fn test_fail ( ) {
1110
- unsafe {
1111
- ffi:: g_test_fail ( ) ;
1112
- }
1113
- }
1114
-
1115
- pub fn test_failed ( ) -> bool {
1116
- unsafe {
1117
- from_glib ( ffi:: g_test_failed ( ) )
1118
- }
1119
- }
1120
-
1121
- //pub fn test_get_dir(file_type: /*Ignored*/TestFileType) -> Option<std::path::PathBuf> {
1122
- // unsafe { TODO: call ffi::g_test_get_dir() }
1123
- //}
1124
-
1125
- //pub fn test_get_filename(file_type: /*Ignored*/TestFileType, first_path: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option<GString> {
1126
- // unsafe { TODO: call ffi::g_test_get_filename() }
1127
- //}
1128
-
1129
- //pub fn test_get_root() -> /*Ignored*/Option<TestSuite> {
1130
- // unsafe { TODO: call ffi::g_test_get_root() }
1131
- //}
1132
-
1133
- pub fn test_incomplete ( msg : Option < & str > ) {
1134
- unsafe {
1135
- ffi:: g_test_incomplete ( msg. to_glib_none ( ) . 0 ) ;
1136
- }
1137
- }
1138
-
1139
- //pub fn test_init(argc: i32, argv: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) {
1140
- // unsafe { TODO: call ffi::g_test_init() }
1141
- //}
1142
-
1143
- //pub fn test_log_set_fatal_handler(log_func: /*Unimplemented*/Fn(&str, /*Ignored*/LogLevelFlags, &str) -> bool, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) {
1144
- // unsafe { TODO: call ffi::g_test_log_set_fatal_handler() }
1145
- //}
1146
-
1147
- //pub fn test_log_type_name(log_type: /*Ignored*/TestLogType) -> Option<GString> {
1148
- // unsafe { TODO: call ffi::g_test_log_type_name() }
1149
- //}
1150
-
1151
- //pub fn test_maximized_result(maximized_quantity: f64, format: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) {
1152
- // unsafe { TODO: call ffi::g_test_maximized_result() }
1153
- //}
1154
-
1155
- //pub fn test_message(format: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) {
1156
- // unsafe { TODO: call ffi::g_test_message() }
1157
- //}
1158
-
1159
- //pub fn test_minimized_result(minimized_quantity: f64, format: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) {
1160
- // unsafe { TODO: call ffi::g_test_minimized_result() }
1161
- //}
1162
-
1163
- //pub fn test_queue_destroy(destroy_data: /*Unimplemented*/Option<Fundamental: Pointer>) {
1164
- // unsafe { TODO: call ffi::g_test_queue_destroy() }
1165
- //}
1166
-
1167
- //pub fn test_queue_free(gfree_pointer: /*Unimplemented*/Option<Fundamental: Pointer>) {
1168
- // unsafe { TODO: call ffi::g_test_queue_free() }
1169
- //}
1170
-
1171
- pub fn test_rand_double ( ) -> f64 {
1172
- unsafe {
1173
- ffi:: g_test_rand_double ( )
1174
- }
1175
- }
1176
-
1177
- pub fn test_rand_double_range ( range_start : f64 , range_end : f64 ) -> f64 {
1178
- unsafe {
1179
- ffi:: g_test_rand_double_range ( range_start, range_end)
1180
- }
1181
- }
1182
-
1183
- pub fn test_rand_int ( ) -> i32 {
1184
- unsafe {
1185
- ffi:: g_test_rand_int ( )
1186
- }
1187
- }
1188
-
1189
- pub fn test_rand_int_range ( begin : i32 , end : i32 ) -> i32 {
1190
- unsafe {
1191
- ffi:: g_test_rand_int_range ( begin, end)
1192
- }
1193
- }
1194
-
1195
- pub fn test_run ( ) -> i32 {
1196
- unsafe {
1197
- ffi:: g_test_run ( )
1198
- }
1199
- }
1200
-
1201
- //pub fn test_run_suite(suite: /*Ignored*/&mut TestSuite) -> i32 {
1202
- // unsafe { TODO: call ffi::g_test_run_suite() }
1203
- //}
1204
-
1205
- pub fn test_set_nonfatal_assertions ( ) {
1206
- unsafe {
1207
- ffi:: g_test_set_nonfatal_assertions ( ) ;
1208
- }
1209
- }
1210
-
1211
- pub fn test_skip ( msg : Option < & str > ) {
1212
- unsafe {
1213
- ffi:: g_test_skip ( msg. to_glib_none ( ) . 0 ) ;
1214
- }
1215
- }
1216
-
1217
- pub fn test_subprocess ( ) -> bool {
1218
- unsafe {
1219
- from_glib ( ffi:: g_test_subprocess ( ) )
1220
- }
1221
- }
1222
-
1223
- pub fn test_timer_elapsed ( ) -> f64 {
1224
- unsafe {
1225
- ffi:: g_test_timer_elapsed ( )
1226
- }
1227
- }
1228
-
1229
- pub fn test_timer_last ( ) -> f64 {
1230
- unsafe {
1231
- ffi:: g_test_timer_last ( )
1232
- }
1233
- }
1234
-
1235
- pub fn test_timer_start ( ) {
1236
- unsafe {
1237
- ffi:: g_test_timer_start ( ) ;
1238
- }
1239
- }
1240
-
1241
- pub fn test_trap_assertions ( domain : & str , file : & str , line : i32 , func : & str , assertion_flags : u64 , pattern : & str ) {
1242
- unsafe {
1243
- ffi:: g_test_trap_assertions ( domain. to_glib_none ( ) . 0 , file. to_glib_none ( ) . 0 , line, func. to_glib_none ( ) . 0 , assertion_flags, pattern. to_glib_none ( ) . 0 ) ;
1244
- }
1245
- }
1246
-
1247
- //pub fn test_trap_fork(usec_timeout: u64, test_trap_flags: /*Ignored*/TestTrapFlags) -> bool {
1248
- // unsafe { TODO: call ffi::g_test_trap_fork() }
1249
- //}
1250
-
1251
- pub fn test_trap_has_passed ( ) -> bool {
1252
- unsafe {
1253
- from_glib ( ffi:: g_test_trap_has_passed ( ) )
1254
- }
1255
- }
1256
-
1257
- pub fn test_trap_reached_timeout ( ) -> bool {
1258
- unsafe {
1259
- from_glib ( ffi:: g_test_trap_reached_timeout ( ) )
1260
- }
1261
- }
1262
-
1263
- //pub fn test_trap_subprocess(test_path: Option<&str>, usec_timeout: u64, test_flags: /*Ignored*/TestSubprocessFlags) {
1264
- // unsafe { TODO: call ffi::g_test_trap_subprocess() }
1265
- //}
1266
-
1267
1053
//pub fn try_malloc(n_bytes: usize) -> /*Unimplemented*/Option<Fundamental: Pointer> {
1268
1054
// unsafe { TODO: call ffi::g_try_malloc() }
1269
1055
//}
0 commit comments