HomeSort by relevance Sort by last modified time
    Searched full:g_assert (Results 1 - 25 of 143) sorted by null

1 2 3 4 5 6

  /external/bluetooth/glib/tests/
atomic-test.c 20 g_assert (atomic == 10);
22 g_assert (!g_atomic_int_dec_and_test (&atomic));
23 g_assert (g_atomic_int_dec_and_test (&atomic));
24 g_assert (atomic == 0);
26 g_assert (g_atomic_int_exchange_and_add (&atomic, 5) == 0);
27 g_assert (atomic == 5);
29 g_assert (g_atomic_int_exchange_and_add (&atomic, -10) == 5);
30 g_assert (atomic == -5);
33 g_assert (atomic == 15);
36 g_assert (atomic == -20)
    [all...]
convert-test.c 52 g_assert (bytes_read == 5);
53 g_assert (bytes_written == 10);
54 g_assert (strcmp (out, expected) == 0);
74 g_assert (bytes_read == 2);
75 g_assert (bytes_written == 1);
76 g_assert (strcmp (out, "\xbd") == 0);
85 g_assert (bytes_read == 0);
86 g_assert (bytes_written == 0);
87 g_assert (out == NULL);
98 g_assert (bytes_read == 2)
    [all...]
type-test.c 64 g_assert (sizeof (gint8) == 1);
65 g_assert (sizeof (gint16) == 2);
66 g_assert (sizeof (gint32) == 4);
67 g_assert (sizeof (gint64) == 8);
69 g_assert (GUINT16_SWAP_LE_BE (gu16t1) == gu16t2);
70 g_assert (GUINT32_SWAP_LE_BE (gu32t1) == gu32t2);
71 g_assert (GUINT64_SWAP_LE_BE (gu64t1) == gu64t2);
77 g_assert (gus == 0);
81 g_assert (gui == 0);
85 g_assert (gul == 0)
    [all...]
utf8-pointer.c 38 g_assert (g_utf8_validate (string, -1, NULL));
51 g_assert (g_utf8_offset_to_pointer (p[i], j - i) == p[j]);
52 g_assert (g_utf8_pointer_to_offset (p[i], p[j]) == j - i);
71 g_assert (g_utf8_strlen ("1234", -1) == 4);
72 g_assert (g_utf8_strlen ("1234", 0) == 0);
73 g_assert (g_utf8_strlen ("1234", 1) == 1);
74 g_assert (g_utf8_strlen ("1234", 2) == 2);
75 g_assert (g_utf8_strlen ("1234", 3) == 3);
76 g_assert (g_utf8_strlen ("1234", 4) == 4);
77 g_assert (g_utf8_strlen ("1234", 5) == 4)
    [all...]
queue-test.c 22 g_assert (queue->length < 4000000000u);
24 g_assert (g_queue_get_length (queue) == queue->length);
27 g_assert (!queue->tail);
29 g_assert (!queue->head);
39 g_assert (n == queue->length);
40 g_assert (last == queue->tail);
50 g_assert (n == queue->length);
51 g_assert (last == queue->head);
60 g_assert (list == link->data);
72 g_assert (list == link->data)
    [all...]
tree-test.c 73 g_assert ((*ch) > 0);
94 g_assert (**p == *ch);
120 g_assert (g_tree_nnodes (tree) == strlen (chars));
121 g_assert (g_tree_height (tree) == 6);
129 g_assert (removed);
134 g_assert (removed == FALSE);
138 g_assert (g_tree_nnodes (tree) == strlen (chars2));
139 g_assert (g_tree_height (tree) == 6);
152 g_assert (p && *p == c);
156 g_assert (p && *p == c)
    [all...]
env-test.c 56 g_assert (data == NULL && "TEST_G_SETENV already set");
59 g_assert (result && "g_setenv() failed");
62 g_assert (data != NULL && "g_getenv() returns NULL");
63 g_assert (strcmp (data, value1) == 0 && "g_getenv() returns wrong value");
66 g_assert (result && "g_setenv() failed");
69 g_assert (data != NULL && "g_getenv() returns NULL");
70 g_assert (strcmp (data, value2) != 0 && "g_setenv() always overwrites");
71 g_assert (strcmp (data, value1) == 0 && "g_getenv() returns wrong value");
74 g_assert (result && "g_setenv() failed");
77 g_assert (data != NULL && "g_getenv() returns NULL")
    [all...]
relation-test.c 87 g_assert (! g_relation_exists (relation, data + i, data + i));
88 g_assert (! g_relation_exists (relation, data + i, data + i + 2));
89 g_assert (! g_relation_exists (relation, data + i, data + i - 2));
94 g_assert (g_relation_exists (relation, data + i, data + i + 1));
95 g_assert (g_relation_exists (relation, data + i, data + i - 1));
100 g_assert (g_relation_count (relation, data + i, 0) == 2);
101 g_assert (g_relation_count (relation, data + i, 1) == 2);
104 g_assert (g_relation_count (relation, data, 0) == 0);
106 g_assert (g_relation_count (relation, data + 42, 0) == 2);
107 g_assert (g_relation_count (relation, data + 43, 1) == 2)
    [all...]
hash-test.c 74 g_assert (array[i] == i);
82 g_assert (key == value);
86 g_assert (n >= 0 && n < 10000);
87 g_assert (result_array[n] == -1);
193 g_assert (name != NULL);
194 g_assert (*name != 0);
228 g_assert (_key != NULL);
229 g_assert (*_key != 0);
230 g_assert (_value != NULL);
231 g_assert (*_value != 0)
    [all...]
testglib.c 269 g_assert (g_node_depth (root) == 1 && g_node_max_height (root) == 1);
273 g_assert (root->children == node_B);
281 g_assert (root->children->next == node_F);
291 g_assert (g_node_depth (root) == 1);
292 g_assert (g_node_max_height (root) == 4);
293 g_assert (g_node_depth (node_G->children->next) == 4);
294 g_assert (g_node_n_nodes (root, G_TRAVERSE_LEAFS) == 7);
295 g_assert (g_node_n_nodes (root, G_TRAVERSE_NON_LEAFS) == 4);
296 g_assert (g_node_n_nodes (root, G_TRAVERSE_ALL) == 11);
297 g_assert (g_node_max_height (node_F) == 3)
    [all...]
completion-test.c 46 g_assert (!strcmp ("a\302", prefix));
47 g_assert (g_list_length (items) == 2);
51 g_assert (!strcmp ("a", prefix));
52 g_assert (g_list_length (items) == 2);
56 g_assert (!strcmp ("b", prefix));
57 g_assert (g_list_length (items) == 2);
61 g_assert (!strcmp ("b", prefix));
62 g_assert (g_list_length (items) == 2);
66 g_assert (g_list_length (items) == 2);
69 g_assert (g_list_length (items) == 2)
    [all...]
sequence-test.c 45 g_assert (node->parent != node);
47 g_assert (node->parent->left == node || node->parent->right == node);
48 g_assert (node->n_nodes == 1 + (node->left ? node->left->n_nodes : 0) + (node->right ? node->right->n_nodes : 0));
50 g_assert (get_priority (node) >= get_priority (node->left));
52 g_assert (get_priority (node) >= get_priority (node->right));
71 g_assert (seq->end_node == node);
72 g_assert (node->data == seq);
136 g_assert (info->n_items == g_queue_get_length (info->queue));
137 g_assert (g_sequence_get_length (info->sequence) == info->n_items);
145 g_assert (list->data == iter)
    [all...]
  /external/bluetooth/glib/gio/tests/
filter-streams.c 29 g_assert (g_filter_input_stream_get_base_stream (G_FILTER_INPUT_STREAM (f1)) == base);
30 g_assert (g_filter_input_stream_get_base_stream (G_FILTER_INPUT_STREAM (f2)) == base);
32 g_assert (!g_input_stream_is_closed (base));
33 g_assert (!g_input_stream_is_closed (f1));
34 g_assert (!g_input_stream_is_closed (f2));
38 g_assert (!g_input_stream_is_closed (base));
39 g_assert (!g_input_stream_is_closed (f2));
43 g_assert (g_input_stream_is_closed (base));
59 g_assert (g_filter_output_stream_get_base_stream (G_FILTER_OUTPUT_STREAM (f1)) == base);
60 g_assert (g_filter_output_stream_get_base_stream (G_FILTER_OUTPUT_STREAM (f2)) == base)
    [all...]
desktop-app-info.c 41 g_assert (error == NULL);
45 g_assert (error == NULL);
47 g_assert (error == NULL);
65 g_assert (id != NULL);
70 g_assert (res);
73 g_assert (res);
76 g_assert (res);
79 g_assert (!res);
86 g_assert (info);
89 g_assert (!res)
    [all...]
simple-async-result.c 26 g_assert (obj == NULL);
44 g_assert (a == got_source);
45 g_assert (b == got_result);
46 g_assert (c == got_user_data);
75 g_assert (g_simple_async_result_is_valid (got_result, a, test_simple_async));
76 g_assert (!g_simple_async_result_is_valid (got_result, b, test_simple_async));
77 g_assert (!g_simple_async_result_is_valid (got_result, c, test_simple_async));
78 g_assert (!g_simple_async_result_is_valid (got_result, b, callback_func));
79 g_assert (!g_simple_async_result_is_valid ((gpointer) a, NULL, NULL));
g-file-info.c 40 g_assert (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_NAME) == TRUE);
41 g_assert (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME) == TRUE);
42 g_assert (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_SIZE) == TRUE);
43 g_assert (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_COPY_NAME) == FALSE);
55 g_assert (mistake == NULL);
77 g_assert (attr_list != NULL);
78 g_assert (*attr_list == NULL);
87 g_assert (attr_list != NULL);
88 g_assert (*attr_list != NULL);
94 g_assert (info_dup != NULL)
    [all...]
  /external/bluetooth/glib/tests/gobject/
gvalue-test.c 52 g_assert (g_value_get_char (&xform) == 1);
57 g_assert (g_value_get_uchar (&xform) == 1);
62 g_assert (g_value_get_int (&xform) == 1);
67 g_assert (g_value_get_uint (&xform) == 1);
72 g_assert (g_value_get_long (&xform) == 1);
77 g_assert (g_value_get_ulong (&xform) == 1);
82 g_assert (g_value_get_int64 (&xform) == 1);
87 g_assert (g_value_get_uint64 (&xform) == 1);
102 g_assert (type == G_TYPE_BOXED);
107 g_assert (type == G_TYPE_BOXED)
    [all...]
references.c 101 g_assert (object == global_object);
102 g_assert (data == GUINT_TO_POINTER (42));
111 g_assert (object == global_object);
112 g_assert (data == GUINT_TO_POINTER (24));
122 g_assert (object == global_object);
123 g_assert (data == GUINT_TO_POINTER (42));
136 g_assert (object == global_object);
137 g_assert (data == GUINT_TO_POINTER (24));
150 g_assert (object == global_object);
151 g_assert (data == GUINT_TO_POINTER (34))
    [all...]
paramspec-test.c 45 g_assert (strcmp (g_param_spec_get_name (pspec), "char") == 0);
46 g_assert (strcmp (g_param_spec_get_nick (pspec), "nick") == 0);
47 g_assert (strcmp (g_param_spec_get_blurb (pspec), "blurb") == 0);
52 g_assert (g_param_value_defaults (pspec, &value));
56 g_assert (modified && g_value_get_char (&value) == 20);
60 g_assert (!modified && g_value_get_char (&value) == 20);
64 g_assert (!modified && g_value_get_char (&value) == 40);
68 g_assert (modified && g_value_get_char (&value) == 40);
86 g_assert (!modified);
90 g_assert (!modified && g_value_get_string (&value) != NULL)
    [all...]
dynamictype.c 85 g_assert (class == NULL);
86 g_assert (!loaded);
90 g_assert (class && class->val == 42);
91 g_assert (loaded);
95 g_assert (class && class->val == 42);
96 g_assert (loaded);
103 g_assert (!class);
104 g_assert (!loaded);
108 g_assert (class && class->val == 42);
109 g_assert (loaded)
    [all...]
defaultiface.c 69 g_assert (static_iface == NULL);
73 g_assert (static_iface && static_iface->val == 42);
77 g_assert (static_iface && static_iface->val == 42);
84 g_assert (static_iface && static_iface->val == 42);
149 g_assert (dynamic_iface == NULL);
153 g_assert (dynamic_iface_init);
154 g_assert (dynamic_iface && dynamic_iface->val == 42);
158 g_assert (dynamic_iface && dynamic_iface->val == 42);
162 g_assert (!dynamic_iface_init);
166 g_assert (dynamic_iface == NULL)
    [all...]
ifaceproperties.c 167 g_assert (n_construct_properties == 1);
173 g_assert (G_IS_PARAM_SPEC_OVERRIDE (pspec));
174 g_assert (pspec->param_id == BASE_PROP1);
175 g_assert (strcmp (g_param_spec_get_name (pspec), "prop1") == 0);
176 g_assert (g_param_spec_get_redirect_target (pspec) == iface_spec1);
180 g_assert (strcmp (g_param_spec_get_nick (pspec), "Prop1") == 0);
181 g_assert (strcmp (g_param_spec_get_blurb (pspec), "Property 1") == 0);
189 g_assert (g_value_get_int (&value1) == 42);
193 g_assert (g_param_value_validate (pspec, &value1));
194 g_assert (g_value_get_int (&value1) == 0xFFFF)
    [all...]
ifaceinit.c 147 g_assert (!called); \
154 g_assert (n_calls <= 2); \
155 g_assert (G_TYPE_IS_INTERFACE (((GTypeInterface*) iface)->g_type)); \
157 g_assert (((GTypeInterface*) iface)->g_instance_type == 0); \
159 g_assert (G_TYPE_IS_OBJECT (((GTypeInterface*) iface)->g_instance_type)); \
190 g_assert (iface->default_val == 0x111111);
254 g_assert (iface->base_iface.g_type == TEST_TYPE_IFACE1);
255 g_assert (iface->base_iface.g_instance_type == 0);
256 g_assert (iface->base_val == 0x110011);
257 g_assert (iface->val == 0)
    [all...]
  /external/webkit/WebKit/gtk/tests/
testloading.c 105 g_assert(fixture->has_been_provisional);
106 g_assert(fixture->has_been_committed);
107 g_assert(fixture->has_been_first_visually_non_empty_layout);
119 g_assert(!fixture->has_been_provisional);
120 g_assert(!fixture->has_been_committed);
121 g_assert(!fixture->has_been_first_visually_non_empty_layout);
125 g_assert(fixture->has_been_provisional);
126 g_assert(!fixture->has_been_committed);
127 g_assert(!fixture->has_been_first_visually_non_empty_layout);
131 g_assert(fixture->has_been_provisional)
    [all...]
testwebbackforwardlist.c 126 g_assert(webBackForwardList);
129 g_assert(!webkit_web_back_forward_list_get_current_item(webBackForwardList));
132 g_assert(!webkit_web_view_can_go_forward(webView));
133 g_assert(!webkit_web_view_can_go_back(webView));
139 g_assert(webkit_web_back_forward_list_contains_item(webBackForwardList, item1));
144 g_assert(webkit_web_back_forward_list_contains_item(webBackForwardList, item2));
149 g_assert(webkit_web_back_forward_list_contains_item(webBackForwardList, item3));
154 g_assert(webkit_web_back_forward_list_contains_item(webBackForwardList, item4));
158 g_assert(backList);
176 g_assert(webkit_web_view_go_to_back_forward_item(webView, item1))
    [all...]

Completed in 303 milliseconds

1 2 3 4 5 6