Christian Costa : d3dxof: Group and simplify templates and objects in a cleaner manner.

Alexandre Julliard julliard at winehq.org
Mon May 20 15:13:57 CDT 2013


Module: wine
Branch: master
Commit: 83f49b9855e8b1a8eaa494dc9fff32275f3de447
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=83f49b9855e8b1a8eaa494dc9fff32275f3de447

Author: Christian Costa <titan.costa at gmail.com>
Date:   Sun May 19 22:32:58 2013 +0200

d3dxof: Group and simplify templates and objects in a cleaner manner.

---

 dlls/d3dxof/tests/d3dxof.c |   29 +++++++++++------------------
 1 files changed, 11 insertions(+), 18 deletions(-)

diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c
index 87b7985..8e380a8 100644
--- a/dlls/d3dxof/tests/d3dxof.c
+++ b/dlls/d3dxof/tests/d3dxof.c
@@ -84,6 +84,15 @@ static char empty_bzip_file[] = "xof 0302bzip0064\x11\x00\x00\x00\x01\x00\x05\x0
 static char empty_cmp_file[]  = "xof 0302cmp 0064";
 static char empty_xxxx_file[] = "xof 0302xxxx0064";
 
+static char templates_bad_file_type1[]      = "xOf 0302txt 0064\n";
+static char templates_bad_file_version[]    = "xof 0102txt 0064\n";
+static char templates_bad_file_type2[]      = "xof 0302foo 0064\n";
+static char templates_bad_file_float_size[] = "xof 0302txt 0050\n";
+
+static char templates_parse_error[] =
+"xof 0302txt 0064"
+"foobar;\n";
+
 static char object_noname[] =
 "xof 0302txt 0064\n"
 "Header\n"
@@ -91,7 +100,7 @@ static char object_noname[] =
 "1; 2; 3;\n"
 "}\n";
 
-static char template_syntax_empty_array[] =
+static char template_syntax_array_mixed[] =
 "xof 0302txt 0064\n"
 "template Buffer\n"
 "{\n"
@@ -140,22 +149,6 @@ static char object_syntax_string_with_separator[] =
 "\"foo;bar\";\n"
 "}\n";
 
-static char templates_bad_file_type1[] =
-"xOf 0302txt 0064\n";
-
-static char templates_bad_file_version[] =
-"xof 0102txt 0064\n";
-
-static char templates_bad_file_type2[] =
-"xof 0302foo 0064\n";
-
-static char templates_bad_file_float_size[] =
-"xof 0302txt 0050\n";
-
-static char templates_parse_error[] =
-"xof 0302txt 0064"
-"foobar;\n";
-
 static void init_function_pointers(void)
 {
     /* We have to use LoadLibrary as no d3dxof functions are referenced directly */
@@ -592,7 +585,7 @@ static void test_syntax(void)
         return;
     }
 
-    hr = IDirectXFile_RegisterTemplates(lpDirectXFile, template_syntax_empty_array, sizeof(template_syntax_empty_array) - 1);
+    hr = IDirectXFile_RegisterTemplates(lpDirectXFile, template_syntax_array_mixed, sizeof(template_syntax_array_mixed) - 1);
     ok(hr == DXFILE_OK, "IDirectXFileImpl_RegisterTemplates: %x\n", hr);
 
     dxflm.lpMemory = &object_syntax_empty_array_semicolon;




More information about the wine-cvs mailing list