Commit 798af6fe authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

windowscodecs/tests: Make some functions static.

parent e464d480
...@@ -159,7 +159,7 @@ static const IWICBitmapSourceVtbl BitmapTestSrc_Vtbl = { ...@@ -159,7 +159,7 @@ static const IWICBitmapSourceVtbl BitmapTestSrc_Vtbl = {
BitmapTestSrc_CopyPixels BitmapTestSrc_CopyPixels
}; };
void CreateTestBitmap(const bitmap_data *data, IWICBitmapSource **bitmap) static void CreateTestBitmap(const bitmap_data *data, IWICBitmapSource **bitmap)
{ {
BitmapTestSrc *This = HeapAlloc(GetProcessHeap(), 0, sizeof(BitmapTestSrc)); BitmapTestSrc *This = HeapAlloc(GetProcessHeap(), 0, sizeof(BitmapTestSrc));
...@@ -174,7 +174,7 @@ void CreateTestBitmap(const bitmap_data *data, IWICBitmapSource **bitmap) ...@@ -174,7 +174,7 @@ void CreateTestBitmap(const bitmap_data *data, IWICBitmapSource **bitmap)
*bitmap = NULL; *bitmap = NULL;
} }
void DeleteTestBitmap(IWICBitmapSource *bitmap) static void DeleteTestBitmap(IWICBitmapSource *bitmap)
{ {
BitmapTestSrc *This = (BitmapTestSrc*)bitmap; BitmapTestSrc *This = (BitmapTestSrc*)bitmap;
ok(This->lpVtbl == &BitmapTestSrc_Vtbl, "test bitmap %p deleted with incorrect vtable\n", bitmap); ok(This->lpVtbl == &BitmapTestSrc_Vtbl, "test bitmap %p deleted with incorrect vtable\n", bitmap);
...@@ -182,7 +182,7 @@ void DeleteTestBitmap(IWICBitmapSource *bitmap) ...@@ -182,7 +182,7 @@ void DeleteTestBitmap(IWICBitmapSource *bitmap)
HeapFree(GetProcessHeap(), 0, This); HeapFree(GetProcessHeap(), 0, This);
} }
void compare_bitmap_data(const struct bitmap_data *expect, IWICBitmapSource *source, const char *name) static void compare_bitmap_data(const struct bitmap_data *expect, IWICBitmapSource *source, const char *name)
{ {
BYTE *converted_bits; BYTE *converted_bits;
UINT width, height; UINT width, height;
...@@ -248,7 +248,7 @@ static const BYTE bits_32bppBGRA[] = { ...@@ -248,7 +248,7 @@ static const BYTE bits_32bppBGRA[] = {
static const struct bitmap_data testdata_32bppBGRA = { static const struct bitmap_data testdata_32bppBGRA = {
&GUID_WICPixelFormat32bppBGRA, 32, bits_32bppBGRA, 4, 2, 96.0, 96.0}; &GUID_WICPixelFormat32bppBGRA, 32, bits_32bppBGRA, 4, 2, 96.0, 96.0};
void test_conversion(const struct bitmap_data *src, const struct bitmap_data *dst, const char *name, BOOL todo) static void test_conversion(const struct bitmap_data *src, const struct bitmap_data *dst, const char *name, BOOL todo)
{ {
IWICBitmapSource *src_bitmap, *dst_bitmap; IWICBitmapSource *src_bitmap, *dst_bitmap;
HRESULT hr; HRESULT hr;
...@@ -271,7 +271,7 @@ void test_conversion(const struct bitmap_data *src, const struct bitmap_data *ds ...@@ -271,7 +271,7 @@ void test_conversion(const struct bitmap_data *src, const struct bitmap_data *ds
DeleteTestBitmap(src_bitmap); DeleteTestBitmap(src_bitmap);
} }
void test_invalid_conversion(void) static void test_invalid_conversion(void)
{ {
IWICBitmapSource *src_bitmap, *dst_bitmap; IWICBitmapSource *src_bitmap, *dst_bitmap;
HRESULT hr; HRESULT hr;
...@@ -285,7 +285,7 @@ void test_invalid_conversion(void) ...@@ -285,7 +285,7 @@ void test_invalid_conversion(void)
DeleteTestBitmap(src_bitmap); DeleteTestBitmap(src_bitmap);
} }
void test_default_converter(void) static void test_default_converter(void)
{ {
IWICBitmapSource *src_bitmap; IWICBitmapSource *src_bitmap;
IWICFormatConverter *converter; IWICFormatConverter *converter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment