Lines Matching refs:res

161 	HTTP_RESOURCE_FOREACH(service_A, res) {  in ZTEST()
162 if (res == &resource_0) { in ZTEST()
164 } else if (res == &resource_1) { in ZTEST()
166 } else if (res == &resource_2) { in ZTEST()
171 res, &resource_0, &resource_1, &resource_2); in ZTEST()
183 HTTP_RESOURCE_FOREACH(service_B, res) { in ZTEST()
184 if (res == &resource_3) { in ZTEST()
186 } else if (res == &resource_4) { in ZTEST()
190 "res (%p) not equal to &resource_3 (%p) or &resource_4 (%p)", res, in ZTEST()
201 HTTP_SERVICE_FOREACH_RESOURCE(&service_C, res) { in ZTEST()
217 HTTP_SERVICE_FOREACH_RESOURCE(&service_A, res) { in ZTEST()
218 if (res == &resource_0) { in ZTEST()
220 } else if (res == &resource_1) { in ZTEST()
222 } else if (res == &resource_2) { in ZTEST()
227 res, &resource_0, &resource_1, &resource_2); in ZTEST()
239 HTTP_SERVICE_FOREACH_RESOURCE(&service_B, res) { in ZTEST()
240 if (res == &resource_3) { in ZTEST()
242 } else if (res == &resource_4) { in ZTEST()
246 "res (%p) not equal to &resource_3 (%p) or &resource_4 (%p)", res, in ZTEST()
257 HTTP_SERVICE_FOREACH_RESOURCE(&service_C, res) { in ZTEST()
267 HTTP_SERVICE_FOREACH_RESOURCE(&service_A, res) { in ZTEST()
268 if (res == &resource_0) { in ZTEST()
269 zassert_ok(strcmp(res->resource, "/")); in ZTEST()
270 zassert_equal(res->detail, RES(0)); in ZTEST()
271 } else if (res == &resource_1) { in ZTEST()
272 zassert_ok(strcmp(res->resource, "/index.html")); in ZTEST()
273 zassert_equal(res->detail, RES(1)); in ZTEST()
274 } else if (res == &resource_2) { in ZTEST()
275 zassert_ok(strcmp(res->resource, "/fs/*")); in ZTEST()
276 zassert_equal(res->detail, RES(5)); in ZTEST()
279 "res (%p) not equal to &resource_0 (%p) or &resource_1 (%p)", res, in ZTEST()
284 HTTP_SERVICE_FOREACH_RESOURCE(&service_B, res) { in ZTEST()
285 if (res == &resource_3) { in ZTEST()
286 zassert_ok(strcmp(res->resource, "/foo.htm")); in ZTEST()
287 zassert_equal(res->detail, RES(2)); in ZTEST()
288 } else if (res == &resource_4) { in ZTEST()
289 zassert_ok(strcmp(res->resource, "/bar/baz.php")); in ZTEST()
290 zassert_equal(res->detail, RES(3)); in ZTEST()
293 "res (%p) not equal to &resource_3 (%p) or &resource_4 (%p)", res, in ZTEST()
307 struct http_resource_detail *res; in ZTEST() local
310 res = CHECK_PATH("/", &len); in ZTEST()
311 zassert_not_null(res, "Cannot find resource"); in ZTEST()
313 zassert_equal(res, RES(0), "Resource mismatch"); in ZTEST()
315 res = CHECK_PATH("/f", &len); in ZTEST()
316 zassert_is_null(res, "Resource found"); in ZTEST()
319 res = CHECK_PATH("/foo1.html", &len); in ZTEST()
320 zassert_not_null(res, "Cannot find resource"); in ZTEST()
322 zassert_equal(res, RES(0), "Resource mismatch"); in ZTEST()
324 res = CHECK_PATH("/foo2222.html", &len); in ZTEST()
325 zassert_not_null(res, "Cannot find resource"); in ZTEST()
327 zassert_equal(res, RES(1), "Resource mismatch"); in ZTEST()
329 res = CHECK_PATH("/fbo3.html", &len); in ZTEST()
330 zassert_not_null(res, "Cannot find resource"); in ZTEST()
332 zassert_equal(res, RES(1), "Resource mismatch"); in ZTEST()
334 res = CHECK_PATH("/fbo3.htm", &len); in ZTEST()
335 zassert_not_null(res, "Cannot find resource"); in ZTEST()
337 zassert_equal(res, RES(0), "Resource mismatch"); in ZTEST()
339 res = CHECK_PATH("/fbo4.html", &len); in ZTEST()
340 zassert_not_null(res, "Cannot find resource"); in ZTEST()
342 zassert_equal(res, RES(3), "Resource mismatch"); in ZTEST()
344 res = CHECK_PATH("/fs/index.html", &len); in ZTEST()
345 zassert_not_null(res, "Cannot find resource"); in ZTEST()
347 zassert_equal(res, RES(5), "Resource mismatch"); in ZTEST()