diff options
Diffstat (limited to 'test/test-loader.c')
-rw-r--r-- | test/test-loader.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/test-loader.c b/test/test-loader.c index 6d52691..cab08d6 100644 --- a/test/test-loader.c +++ b/test/test-loader.c @@ -19,15 +19,15 @@ #define UNUSED(x) (void)(x) #endif -static nslayout_error test_loader_nslayout_test_callback( - nslayout_layout *layout, +static nsl_error test_loader_nsl_test_callback( + nsl_layout *layout, void *pw, - nslayout_request *req) + nsl_request *req) { UNUSED(req); UNUSED(layout); UNUSED(pw); - return NSLAYOUT_OK; + return NSL_OK; } struct test_loader_buffer { @@ -293,8 +293,8 @@ static bool test_loader( css_media_type media, size_t chunk_size) { - nslayout_layout *layout = NULL; - nslayout_error error; + nsl_layout *layout = NULL; + nsl_error error; struct test_loader_ctx load_ctx; bool complete = false; bool ret = false; @@ -320,13 +320,13 @@ static bool test_loader( } printf("Creating nsl layout\n"); - error = nslayout_layout_create(load_ctx.doc, + error = nsl_layout_create(load_ctx.doc, load_ctx.css_ctx, &media, - test_loader_nslayout_test_callback, + test_loader_nsl_test_callback, NULL, &layout); - if (error != NSLAYOUT_OK) { + if (error != NSL_OK) { goto fail; } @@ -340,13 +340,13 @@ static bool test_loader( } printf("Destroying layout\n"); - error = nslayout_layout_destroy(layout); + error = nsl_layout_destroy(layout); layout = NULL; - ret = (error == NSLAYOUT_OK); + ret = (error == NSL_OK); fail: if (layout != NULL) { - nslayout_layout_destroy(layout); + nsl_layout_destroy(layout); } test_loader_css_fini(&load_ctx); dom_node_unref(load_ctx.doc); |