diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-11-26 14:10:33 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-11-26 14:10:33 +0000 |
commit | fe4d9bcf92b504e4a67600f90aa57c1f9791c0a6 (patch) | |
tree | 2db8c9669b33b6351db757c282e9c5e4752a7a13 /test/loader.c | |
parent | f9b1bb2276a3483aa7cfa785c6dff5e040e9b0f3 (diff) | |
download | imv-fe4d9bcf92b504e4a67600f90aa57c1f9791c0a6.tar.gz |
Update loader unit tests
Diffstat (limited to 'test/loader.c')
-rw-r--r-- | test/loader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/loader.c b/test/loader.c index 04654ad..3456abc 100644 --- a/test/loader.c +++ b/test/loader.c @@ -4,9 +4,9 @@ #include <cmocka.h> #include <unistd.h> #include <SDL2/SDL.h> -#include <FreeImage.h> #include <pthread.h> #include "loader.h" +#include "bitmap.h" static void test_jpeg_rotation(void **state) { @@ -20,7 +20,7 @@ static void test_jpeg_rotation(void **state) imv_loader_load(ldr, "test/orientation.jpg", NULL, 0); - FIBITMAP *bmp = NULL; + struct imv_bitmap *bmp = NULL; SDL_Event event; while(SDL_WaitEvent(&event)) { assert_false(event.type == BAD_IMAGE); @@ -32,10 +32,10 @@ static void test_jpeg_rotation(void **state) } assert_false(bmp == NULL); - unsigned int width = FreeImage_GetWidth(bmp); + unsigned int width = bmp->width; assert_true(width == 1); - FreeImage_Unload(bmp); + imv_bitmap_free(bmp); imv_loader_free(ldr); } |