/third_party/glib/glib/tests/ |
D | unicode.c | 41 g_assert_true (g_unichar_validate ('j')); in test_unichar_validate() 42 g_assert_true (g_unichar_validate (8356)); in test_unichar_validate() 43 g_assert_true (g_unichar_validate (8356)); in test_unichar_validate() 44 g_assert_true (g_unichar_validate (0xFDD1)); in test_unichar_validate() 45 g_assert_true (g_unichar_validate (917760)); in test_unichar_validate() 402 g_assert_true (g_unichar_get_mirror_char ('(', &mirror)); in test_mirror() 404 g_assert_true (g_unichar_get_mirror_char (')', &mirror)); in test_mirror() 406 g_assert_true (g_unichar_get_mirror_char ('{', &mirror)); in test_mirror() 408 g_assert_true (g_unichar_get_mirror_char ('}', &mirror)); in test_mirror() 410 g_assert_true (g_unichar_get_mirror_char (0x208D, &mirror)); in test_mirror() [all …]
|
D | atomic.c | 85 g_assert_true (vp2 == 0); in test_types() 88 g_assert_true (vp == 0); in test_types() 90 g_assert_true (res); in test_types() 91 g_assert_true (vp == 0); in test_types() 95 g_assert_true (res); in test_types() 102 g_assert_true (res); in test_types() 106 g_assert_true (ip2 == 0); in test_types() 108 g_assert_true (res); in test_types() 109 g_assert_true (ip == 0); in test_types() 116 g_assert_true (res); in test_types() [all …]
|
D | refcount.c | 32 g_assert_true (g_ref_count_compare (&a, 1)); in test_grefcount() 64 g_assert_true (g_ref_count_dec (&b)); in test_grefcount() 74 g_assert_true (g_ref_count_dec (&a)); in test_grefcount() 93 g_assert_true (a == G_MININT); in test_grefcount_saturation() 96 g_assert_true (a == G_MININT); in test_grefcount_saturation() 126 g_assert_true (g_atomic_ref_count_compare (&a, 1)); in test_gatomicrefcount() 158 g_assert_true (g_atomic_ref_count_dec (&b)); in test_gatomicrefcount() 168 g_assert_true (g_atomic_ref_count_dec (&a)); in test_gatomicrefcount() 186 g_assert_true (a == G_MAXINT); in test_gatomicrefcount_saturation() 189 g_assert_true (a == G_MAXINT); in test_gatomicrefcount_saturation()
|
D | guuid.c | 36 g_assert_true (g_uuid_string_is_valid ("00010203-0405-0607-0809-0a0b0c0d0e0f")); in test_guuid_string() 37 g_assert_true (g_uuid_string_is_valid ("7d444840-9dc0-11d1-b245-5ffdce74fad2")); in test_guuid_string() 38 g_assert_true (g_uuid_string_is_valid ("e902893a-9d22-3c7e-a7b8-d6e313b71d9f")); in test_guuid_string() 39 g_assert_true (g_uuid_string_is_valid ("6ba7b810-9dad-11d1-80b4-00c04fd430c8")); in test_guuid_string() 49 g_assert_true (g_uuid_string_is_valid (str1)); in test_guuid_random() 53 g_assert_true (g_uuid_string_is_valid (str2)); in test_guuid_random()
|
D | bookmarkfile.c | 57 g_assert_true (res); in test_to_file() 61 g_assert_true (res); in test_to_file() 79 g_assert_true (res); in test_to_file() 83 g_assert_true (res); in test_to_file() 87 g_assert_true (res); in test_to_file() 91 g_assert_true (res); in test_to_file() 113 g_assert_true (res); in test_move_item() 120 g_assert_true (res); in test_move_item() 127 g_assert_true (res); in test_move_item() 142 g_assert_true (res); in test_move_item() [all …]
|
D | rcbox.c | 69 g_assert_true (global_point == p); in point_clear() 92 g_assert_true (g_rc_box_acquire (p) == p); in test_rcbox_release_full() 96 g_assert_true (p == global_point); in test_rcbox_release_full() 116 g_assert_true (g_atomic_rc_box_acquire (p) == p); in test_atomic_rcbox_release_full() 120 g_assert_true (p == global_point); in test_atomic_rcbox_release_full() 132 g_assert_true (a == global_point_a); in point_clear_dup_a() 141 g_assert_true (b == global_point_b); in point_clear_dup_b() 160 g_assert_true (a != b); in test_rcbox_dup() 198 g_assert_true (a != b); in test_atomic_rcbox_dup() 251 g_assert_true (((guintptr) p & (rcbox_alignment - 1)) == 0); in test_rcbox_alignment() [all …]
|
D | list.c | 566 g_assert_true (list == &a); in test_list_insert_before_link() 573 g_assert_true (list == &b); in test_list_insert_before_link() 575 g_assert_true (b.next == &a); in test_list_insert_before_link() 576 g_assert_true (a.prev == &b); in test_list_insert_before_link() 582 g_assert_true (list == &b); in test_list_insert_before_link() 584 g_assert_true (b.next == &c); in test_list_insert_before_link() 585 g_assert_true (c.next == &a); in test_list_insert_before_link() 586 g_assert_true (c.prev == &b); in test_list_insert_before_link() 587 g_assert_true (a.prev == &c); in test_list_insert_before_link() 593 g_assert_true (list == &d); in test_list_insert_before_link() [all …]
|
D | cxx.cpp | 33 g_assert_true (obj2 == obj); in test_typeof() 36 g_assert_true (obj3 == obj); in test_typeof() 40 g_assert_true (obj4 == obj); in test_typeof() 44 g_assert_true (obj5 == obj); in test_typeof() 47 g_assert_true (obj6 == obj); in test_typeof()
|
D | strfuncs.c | 272 g_assert_true (str_cpy + strlen (str) == str_cpy_end); in test_stpcpy() 564 g_assert_true (*str == '\0'); in test_strnfill() 636 g_assert_true (*str == '\0'); in test_strjoin() 641 g_assert_true (*str == '\0'); in test_strjoin() 969 g_assert_true (g_strv_equal ((const gchar * const *) tokens, in test_str_tokenize_and_fold() 976 g_assert_true (g_strv_equal ((const gchar * const *) tokens, in test_str_tokenize_and_fold() 983 g_assert_true (g_strv_equal ((const gchar * const *) tokens, in test_str_tokenize_and_fold() 989 g_assert_true (g_strv_equal ((const gchar * const *) tokens, in test_str_tokenize_and_fold() 1014 g_assert_true (p == str); in test_strreverse() 1060 g_assert_true (res == haystack); in test_strstr() [all …]
|
D | autoptr.c | 186 g_assert_true (g_main_context_get_thread_default () == context); in test_g_main_context_pusher() 191 g_assert_true (g_main_context_get_thread_default () == old_thread_default); in test_g_main_context_pusher() 382 g_assert_true (g_mutex_trylock (mutex)); in mutex_unlocked_thread() 425 g_assert_true (g_rec_mutex_trylock (rec_mutex)); in rec_mutex_unlocked_thread() 469 g_assert_true (g_rw_lock_reader_trylock (lock)); in rw_lock_can_take_reader_lock_thread() 507 g_assert_true (g_rw_lock_reader_trylock (&lock)); in test_g_rw_lock_lockers() 517 g_assert_true (g_rw_lock_writer_trylock (&lock)); in test_g_rw_lock_lockers() 638 g_assert_true (freed1); in test_autolist() 639 g_assert_true (freed3); in test_autolist() 644 g_assert_true (freed2); in test_autolist() [all …]
|
D | mainloop.c | 82 g_assert_true (g_source_get_can_recurse (source)); in test_maincontext_basic() 90 g_assert_true (g_main_context_find_source_by_id (ctx, id) == source); in test_maincontext_basic() 96 g_assert_true (g_source_get_context (source) == ctx); in test_maincontext_basic() 119 g_assert_true (g_source_get_context (source) == ctx); in test_maincontext_basic() 120 g_assert_true (g_source_remove_by_funcs_user_data (&funcs, data)); in test_maincontext_basic() 128 g_assert_true (g_source_remove_by_user_data (data)); in test_maincontext_basic() 132 g_assert_true (g_idle_remove_by_data (data)); in test_maincontext_basic() 148 g_assert_true (ctx == g_main_context_default ()); in test_mainloop_basic() 249 g_assert_true (g_main_context_pending (ctx)); in test_priorities() 250 g_assert_true (g_main_context_iteration (ctx, FALSE)); in test_priorities() [all …]
|
D | gvariant.c | 116 g_assert_true (g_variant_type_is_array (result)); in append_type_string() 131 g_assert_true (g_variant_type_is_maybe (result)); in append_type_string() 138 g_assert_true (g_variant_type_is_tuple (result)); in append_type_string() 157 g_assert_true (g_variant_type_is_dict_entry (result)); in append_type_string() 164 g_assert_true (g_variant_type_equal (result, G_VARIANT_TYPE_VARIANT)); in append_type_string() 171 g_assert_true (g_variant_type_equal (result, G_VARIANT_TYPE_ANY)); in append_type_string() 178 g_assert_true (g_variant_type_is_tuple (result)); in append_type_string() 220 g_assert_true (g_variant_type_equal (result, other_result)); in append_tuple_type_string() 271 g_assert_true (*bp == b && *pp == p); in invalid_mutation() 431 g_assert_true (g_variant_type_is_basic (type)); in describe_type() [all …]
|
/third_party/glib/gobject/tests/ |
D | value.c | 16 g_assert_true (G_IS_VALUE (&value)); in test_value_basic() 17 g_assert_true (G_VALUE_HOLDS_INT (&value)); in test_value_basic() 25 g_assert_true (G_IS_VALUE (&value)); in test_value_basic() 26 g_assert_true (G_VALUE_HOLDS_INT (&value)); in test_value_basic() 53 g_assert_true (G_VALUE_HOLDS_STRING (&value)); in test_value_string() 57 g_assert_true (storedstr == NULL); in test_value_string() 62 g_assert_true (storedstr != static1); in test_value_string() 66 g_assert_true (storedstr != str1); in test_value_string() 74 g_assert_true (copystr != storedstr); in test_value_string() 82 g_assert_true (storedstr != static2); in test_value_string() [all …]
|
D | param.c | 16 g_assert_true (G_VALUE_HOLDS_PARAM (&value)); in test_param_value() 22 g_assert_true (p2 == p); in test_param_value() 28 g_assert_true (p2 == pp); /* param specs use ref/unref for copy/free */ in test_param_value() 81 g_assert_true (g_param_value_validate (p, &value)); in test_param_validate() 85 g_assert_true (g_param_value_defaults (p, &value)); in test_param_validate() 152 g_assert_true (g_param_value_convert (p, &v1, &v2, FALSE)); in test_param_convert() 165 g_assert_true (g_value_type_transformable (G_TYPE_INT, type)); \ in test_value_transform() 169 g_assert_true (g_value_transform (&src, &dest)); \ in test_value_transform() 197 g_assert_true (g_value_type_transformable (G_TYPE_UINT, type)); \ in test_value_transform() 201 g_assert_true (g_value_transform (&src, &dest)); \ in test_value_transform() [all …]
|
/third_party/glib/gio/tests/ |
D | mimeapps.c | 231 g_assert_true (g_app_info_equal (def, appinfo)); in test_mime_api() 233 g_assert_true (g_app_info_equal ((GAppInfo*)list->data, appinfo)); in test_mime_api() 243 g_assert_true (g_app_info_equal (def, appinfo)); in test_mime_api() 245 g_assert_true (g_app_info_equal ((GAppInfo*)list->data, appinfo)); in test_mime_api() 246 g_assert_true (g_app_info_equal ((GAppInfo*)list->next->data, appinfo2)); in test_mime_api() 256 g_assert_true (g_app_info_equal (def, appinfo)); in test_mime_api() 258 g_assert_true (g_app_info_equal ((GAppInfo*)list->data, appinfo)); in test_mime_api() 259 g_assert_true (g_app_info_equal ((GAppInfo*)list->next->data, appinfo2)); in test_mime_api() 269 g_assert_true (g_app_info_equal (def, appinfo)); in test_mime_api() 271 g_assert_true (g_app_info_equal ((GAppInfo*)list->data, appinfo2)); in test_mime_api() [all …]
|
D | g-file-info.c | 49 g_assert_true (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_NAME)); in test_assigned_values() 50 g_assert_true (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME)); in test_assigned_values() 51 g_assert_true (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_SIZE)); in test_assigned_values() 117 g_assert_true (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER)); in test_g_file_info() 129 g_assert_true (g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_STANDARD_NAME)); in test_g_file_info() 137 g_assert_true (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_NAME)); in test_g_file_info() 335 g_assert_true (g_file_info_has_attribute (fi_programdata, G_FILE_ATTRIBUTE_ID_FILE)); in test_internal_enhanced_stdio() 336 g_assert_true (g_file_info_has_attribute (fi_programdata, G_FILE_ATTRIBUTE_STANDARD_TYPE)); in test_internal_enhanced_stdio() 338 g_assert_true (g_file_info_has_attribute (fi_allusers_target, G_FILE_ATTRIBUTE_ID_FILE)); in test_internal_enhanced_stdio() 339 … g_assert_true (g_file_info_has_attribute (fi_allusers_target, G_FILE_ATTRIBUTE_STANDARD_TYPE)); in test_internal_enhanced_stdio() [all …]
|
D | contenttype.c | 47 g_assert_true (uncertain); in test_guess() 147 g_assert_true (g_content_type_is_unknown (unknown)); in test_unknown() 167 g_assert_true (g_content_type_is_a (xml, plain)); in test_subtype() 168 g_assert_true (g_content_type_is_mime_type (xml, "text/plain")); in test_subtype() 226 g_assert_true (g_content_type_can_be_executable (type)); in test_executable() 230 g_assert_true (g_content_type_can_be_executable (type)); in test_executable() 268 g_assert_true (G_IS_ICON (icon)); in test_icon() 275 g_assert_true (g_strv_contains (names, "text-*")); in test_icon() 277 g_assert_true (g_strv_contains (names, "text-plain")); in test_icon() 278 g_assert_true (g_strv_contains (names, "text-x-generic")); in test_icon() [all …]
|
D | actions.c | 39 g_assert_true (g_action_get_enabled (G_ACTION (action))); in test_basic() 53 g_assert_true (enabled); in test_basic() 61 g_assert_true (a.did_run); in test_basic() 80 g_assert_true (g_action_get_enabled (G_ACTION (action))); in test_basic() 81 …g_assert_true (g_variant_type_equal (g_action_get_parameter_type (G_ACTION (action)), G_VARIANT_TY… in test_basic() 89 g_assert_true (a.did_run); in test_basic() 113 g_assert_true (g_action_name_is_valid ("abc.def")); in test_name() 114 g_assert_true (g_action_name_is_valid ("ABC-DEF")); in test_name() 198 g_assert_true (a.did_run); in test_simple_group() 207 g_assert_true (a.did_run); in test_simple_group() [all …]
|
D | appinfo.c | 27 g_assert_true (success); in test_launch_for_app_info() 31 g_assert_true (success); in test_launch_for_app_info() 40 g_assert_true (success); in test_launch_for_app_info() 51 g_assert_true (success); in test_launch_for_app_info() 127 g_assert_true (loaded); in test_launch_no_app_id() 208 g_assert_true (G_IS_THEMED_ICON (icon)); in test_basic() 210 g_assert_true (g_icon_equal (icon, icon2)); in test_basic() 236 g_assert_true (g_app_info_should_show (appinfo)); in test_show_in() 241 g_assert_true (g_app_info_should_show (appinfo)); in test_show_in() 270 g_assert_true (g_app_info_supports_uris (appinfo)); in test_commandline() [all …]
|
D | live-g-file.c | 224 g_assert_true (res); in create_empty_dir() 240 g_assert_true (res); in create_symlink() 309 g_assert_true (res); in test_create_structure() 394 g_assert_true (has_attr); in test_attributes() 414 g_assert_true (can_read); in test_attributes() 423 g_assert_true (can_write); in test_attributes() 434 g_assert_true (utf8_valid); in test_attributes() 441 g_assert_true (utf8_valid); in test_attributes() 451 g_assert_true (utf8_valid); in test_attributes() 475 g_assert_true (is_hidden); in test_attributes() [all …]
|
D | simple-async-result.c | 135 g_assert_true (g_simple_async_result_is_valid (result, NULL, NULL)); in test_valid() 136 g_assert_true (g_simple_async_result_is_valid (result, NULL, test_valid)); in test_valid() 137 g_assert_true (g_simple_async_result_is_valid (result, NULL, test_simple_async)); in test_valid() 145 g_assert_true (g_simple_async_result_is_valid (result, NULL, NULL)); in test_valid() 146 g_assert_true (g_simple_async_result_is_valid (result, NULL, test_valid)); in test_valid() 155 g_assert_true (g_simple_async_result_is_valid (result, a, NULL)); in test_valid() 156 g_assert_true (g_simple_async_result_is_valid (result, a, test_valid)); in test_valid() 157 g_assert_true (g_simple_async_result_is_valid (result, a, test_simple_async)); in test_valid() 168 g_assert_true (g_simple_async_result_is_valid (result, a, test_valid)); in test_valid() 169 g_assert_true (g_simple_async_result_is_valid (result, a, NULL)); in test_valid()
|
D | glistmodel.c | 33 g_assert_true (item == object); in list_model_get() 157 g_assert_true (tmp == items[3]); in test_store_refcounts() 448 g_assert_true (model_array_equal (model, array)); in test_store_splice_remove_multiple() 454 g_assert_true (model_array_equal (model, array)); in test_store_splice_remove_multiple() 461 g_assert_true (model_array_equal (model, array)); in test_store_splice_remove_multiple() 468 g_assert_true (model_array_equal (model, array)); in test_store_splice_remove_multiple() 504 g_assert_true (model_array_equal (model, array)); in test_store_splice_add_multiple() 606 g_assert_true (model_array_equal (model, array)); in test_store_sort() 612 g_assert_true (model_array_equal (model, array)); in test_store_sort() 724 g_assert_true (expected.called); in test_store_signal_items_changed() [all …]
|
D | gsettings.c | 388 g_assert_true (g_variant_iter_next (iter, "i", &i1)); in test_complex_types() 390 g_assert_true (g_variant_iter_next (iter, "i", &i1)); in test_complex_types() 392 g_assert_true (g_variant_iter_next (iter, "i", &i1)); in test_complex_types() 394 g_assert_true (g_variant_iter_next (iter, "i", &i1)); in test_complex_types() 396 g_assert_true (g_variant_iter_next (iter, "i", &i1)); in test_complex_types() 398 g_assert_true (g_variant_iter_next (iter, "i", &i1)); in test_complex_types() 405 g_assert_true (g_variant_iter_next (iter, "{&s@au}", &s, &v)); in test_complex_types() 409 g_assert_true (g_variant_iter_next (iter, "{&s@au}", &s, &v)); in test_complex_types() 450 g_assert_true (changed_cb_called); in test_changes() 457 g_assert_true (changed_cb_called); in test_changes() [all …]
|
/third_party/libsoup/tests/ |
D | socket-test.c | 35 g_assert_true (localhost != NULL); in do_unconnected_socket_test() 41 g_assert_true (sock != NULL); in do_unconnected_socket_test() 44 g_assert_true (addr != NULL); in do_unconnected_socket_test() 56 g_assert_true (res); in do_unconnected_socket_test() 59 g_assert_true (addr != NULL); in do_unconnected_socket_test() 69 g_assert_true (addr != NULL); in do_unconnected_socket_test() 71 g_assert_true (addr != NULL); in do_unconnected_socket_test() 146 g_assert_true (g_socket_is_connected (gsock)); in do_socket_from_fd_client_test() 164 g_assert_true (soup_socket_is_connected (sock)); in do_socket_from_fd_client_test() 220 g_assert_true (is_server); in do_socket_from_fd_server_test() [all …]
|
D | session-test.c | 90 g_assert_true (server_processed_message); in do_test_for_session() 92 g_assert_true (server_processed_message); in do_test_for_session() 106 g_assert_true (server_processed_message); in do_test_for_session() 134 g_assert_true (finished); in do_test_for_session() 393 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_AUTH_MANAGER)); in do_features_test() 395 g_assert_true (SOUP_IS_AUTH_MANAGER (feature)); in do_features_test() 402 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_HTTP)); in do_features_test() 403 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_FILE)); in do_features_test() 404 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_DATA)); in do_features_test() 407 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_HTTP)); in do_features_test() [all …]
|