Lines Matching refs:map

35 	struct wl_map map;  in TEST()  local
38 wl_map_init(&map, WL_MAP_SERVER_SIDE); in TEST()
39 i = wl_map_insert_new(&map, 0, &a); in TEST()
40 j = wl_map_insert_new(&map, 0, &b); in TEST()
41 k = wl_map_insert_new(&map, 0, &c); in TEST()
46 assert(wl_map_lookup(&map, i) == &a); in TEST()
47 assert(wl_map_lookup(&map, j) == &b); in TEST()
48 assert(wl_map_lookup(&map, k) == &c); in TEST()
49 wl_map_release(&map); in TEST()
51 wl_map_init(&map, WL_MAP_CLIENT_SIDE); in TEST()
52 i = wl_map_insert_new(&map, 0, &a); in TEST()
54 assert(wl_map_lookup(&map, i) == &a); in TEST()
56 wl_map_release(&map); in TEST()
61 struct wl_map map; in TEST() local
64 wl_map_init(&map, WL_MAP_CLIENT_SIDE); in TEST()
65 assert(wl_map_insert_at(&map, 0, WL_SERVER_ID_START, &a) == 0); in TEST()
66 assert(wl_map_insert_at(&map, 0, WL_SERVER_ID_START + 3, &b) == -1); in TEST()
67 assert(wl_map_insert_at(&map, 0, WL_SERVER_ID_START + 1, &c) == 0); in TEST()
69 assert(wl_map_lookup(&map, WL_SERVER_ID_START) == &a); in TEST()
70 assert(wl_map_lookup(&map, WL_SERVER_ID_START + 1) == &c); in TEST()
72 wl_map_release(&map); in TEST()
77 struct wl_map map; in TEST() local
80 wl_map_init(&map, WL_MAP_SERVER_SIDE); in TEST()
81 i = wl_map_insert_new(&map, 0, &a); in TEST()
82 j = wl_map_insert_new(&map, 0, &b); in TEST()
83 k = wl_map_insert_new(&map, 0, &c); in TEST()
88 assert(wl_map_lookup(&map, i) == &a); in TEST()
89 assert(wl_map_lookup(&map, j) == &b); in TEST()
90 assert(wl_map_lookup(&map, k) == &c); in TEST()
92 wl_map_remove(&map, j); in TEST()
93 assert(wl_map_lookup(&map, j) == NULL); in TEST()
96 l = wl_map_insert_new(&map, 0, &d); in TEST()
98 assert(wl_map_lookup(&map, l) == &d); in TEST()
100 wl_map_release(&map); in TEST()
105 struct wl_map map; in TEST() local
108 wl_map_init(&map, WL_MAP_SERVER_SIDE); in TEST()
109 i = wl_map_insert_new(&map, 0, &a); in TEST()
110 j = wl_map_insert_new(&map, 1, &b); in TEST()
114 assert(wl_map_lookup(&map, i) == &a); in TEST()
115 assert(wl_map_lookup(&map, j) == &b); in TEST()
117 assert(wl_map_lookup_flags(&map, i) == 0); in TEST()
118 assert(wl_map_lookup_flags(&map, j) == 1); in TEST()
120 wl_map_release(&map); in TEST()