From d64416774d94e0b500dad08bea1459d2f559f669 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 8 Apr 2013 17:50:55 +0100 Subject: Fix up for various core changes. --- test/llcache.c | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'test/llcache.c') diff --git a/test/llcache.c b/test/llcache.c index b072aff7a..de823047c 100644 --- a/test/llcache.c +++ b/test/llcache.c @@ -134,6 +134,16 @@ void cookies_remove(const struct cookie_data *data) void bitmap_destroy(void *bitmap) { } +/* image/image.h -- used by urldb + * + * URLdb shouldn't care about bitmaps. + * This is because the legacy RO thumbnail stuff was hacked in and must die. + */ +bool image_bitmap_plot(struct bitmap *bitmap, struct content_redraw_data *data, + const struct rect *clip, const struct redraw_context *ctx) +{ + return true; +} /* content/fetchers/fetch_file.h -- used by fetcher core * @@ -171,14 +181,20 @@ bool test_initialise(lwc_string *scheme) return true; } +bool test_can_fetch(const nsurl *url) +{ + /* Nothing to do */ + return true; +} + void test_finalise(lwc_string *scheme) { /* Nothing to do */ } -void *test_setup_fetch(struct fetch *parent, nsurl *url, bool only_2xx, - const char *post_urlenc, - const struct fetch_multipart_data *post_multipart, +void *test_setup_fetch(struct fetch *parent, nsurl *url, bool only_2xx, + bool downgrade_tls, const char *post_urlenc, + const struct fetch_multipart_data *post_multipart, const char **headers) { test_context *ctx = calloc(1, sizeof(test_context)); @@ -291,9 +307,9 @@ int main(int argc, char **argv) return 1; } - fetch_add_fetcher(scheme, test_initialise, test_setup_fetch, - test_start_fetch, test_abort_fetch, test_free_fetch, - test_poll, test_finalise); + fetch_add_fetcher(scheme, test_initialise, test_can_fetch, + test_setup_fetch, test_start_fetch, test_abort_fetch, + test_free_fetch, test_poll, test_finalise); /* Initialise low-level cache */ error = llcache_initialise(query_handler, NULL, 1024 * 1024); -- cgit v1.2.3