summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/tests/pixbuf_test.h
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/ipxe/src/tests/pixbuf_test.h
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/ipxe/src/tests/pixbuf_test.h')
-rw-r--r--qemu/roms/ipxe/src/tests/pixbuf_test.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/qemu/roms/ipxe/src/tests/pixbuf_test.h b/qemu/roms/ipxe/src/tests/pixbuf_test.h
deleted file mode 100644
index d12829d89..000000000
--- a/qemu/roms/ipxe/src/tests/pixbuf_test.h
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef _PIXBUF_TEST_H
-#define _PIXBUF_TEST_H
-
-FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
-
-#include <stdint.h>
-#include <ipxe/refcnt.h>
-#include <ipxe/image.h>
-#include <ipxe/test.h>
-
-/** A pixel buffer test */
-struct pixel_buffer_test {
- /** Image type */
- struct image_type *type;
- /** Source image */
- struct image *image;
- /** Pixel data */
- const uint32_t *data;
- /** Length of pixel data */
- size_t len;
- /** Width */
- unsigned int width;
- /** Height */
- unsigned int height;
-};
-
-/**
- * Define a pixel buffer test
- *
- * @v _name Test name
- * @v _type Test image file type
- * @v _file Test image file data
- * @v _width Expected pixel buffer width
- * @v _height Expected pixel buffer height
- * @v _data Expected pixel buffer data
- * @ret test Pixel buffer test
- */
-#define PIX( _name, _type, _file, _width, _height, _data ) \
- static const char _name ## __file[] = _file; \
- static const uint32_t _name ## __data[] = _data; \
- static struct image _name ## __image = { \
- .refcnt = REF_INIT ( ref_no_free ), \
- .name = #_name, \
- .data = ( userptr_t ) ( _name ## __file ), \
- .len = sizeof ( _name ## __file ), \
- }; \
- static struct pixel_buffer_test _name = { \
- .type = _type, \
- .image = & _name ## __image, \
- .data = _name ## __data, \
- .len = sizeof ( _name ## __data ), \
- .width = _width, \
- .height = _height, \
- };
-
-extern void pixbuf_okx ( struct pixel_buffer_test *test, const char *file,
- unsigned int line );
-
-/**
- * Report pixel buffer test result
- *
- * @v test Pixel buffer test
- */
-#define pixbuf_ok( test ) pixbuf_okx ( test, __FILE__, __LINE__ )
-
-#endif /* _PIXBUF_TEST_H */