Home
last modified time | relevance | path

Searched refs:key_values (Results 1 – 4 of 4) sorted by relevance

/external/cmockery/cmockery_0_1_2/src/example/
Dkey_value_test.c34 static KeyValue key_values[] = { variable
42 KeyValue * const items = (KeyValue*)test_malloc(sizeof(key_values)); in create_key_values()
43 memcpy(items, key_values, sizeof(key_values)); in create_key_values()
45 set_key_values(items, sizeof(key_values) / sizeof(key_values[0])); in create_key_values()
55 for (i = 0; i < sizeof(key_values) / sizeof(key_values[0]); i++) { in test_find_item_by_value()
56 KeyValue * const found = find_item_by_value(key_values[i].value); in test_find_item_by_value()
58 assert_int_equal(found->key, key_values[i].key); in test_find_item_by_value()
59 assert_string_equal(found->value, key_values[i].value); in test_find_item_by_value()
67 for (i = 1; i < sizeof(key_values) / sizeof(key_values[0]); i++) { in test_sort_items_by_key()
Dkey_value.c25 static KeyValue *key_values = NULL; variable
30 key_values = new_key_values; in set_key_values()
43 if (strcmp(key_values[i].value, value) == 0) { in find_item_by_value()
44 return &key_values[i]; in find_item_by_value()
52 qsort(key_values, number_of_key_values, sizeof(*key_values), in sort_items_by_key()
/external/clang/test/PCH/
Dobjc_literals.mm55 void variadic_dictionary_expansion(pair<Ts, Us>... key_values) {
56 // CHECK-PRINT: id dict = @{ key_values.first : key_values.second... };
59 id dict = @{ key_values.first : key_values.second ... };
/external/clang/test/SemaObjCXX/
Dliterals.mm159 void test_variadic_dictionary_expansion(T t, pair<Ts, Us>... key_values) {
161 …t : key_values.second ..., // expected-error{{collection element of type 'int' is not an Objective…
162key_values.first : key_values.second ..., // expected-error{{collection element of type 'float' is…
163 key_values.second : t ...