Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f054431c
Commit
f054431c
authored
Jun 10, 2013
by
Christian Costa
Committed by
Alexandre Julliard
Jun 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Add test for standard templates.
parent
b3f7de8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
d3dxof.c
dlls/d3dxof/tests/d3dxof.c
+28
-0
No files found.
dlls/d3dxof/tests/d3dxof.c
View file @
f054431c
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "wine/test.h"
#include "wine/test.h"
#include "initguid.h"
#include "initguid.h"
#include "dxfile.h"
#include "dxfile.h"
#include "rmxftmpl.h"
#define I2(x) x,0
#define I2(x) x,0
#define I4(x) x,0,0,0
#define I4(x) x,0,0,0
...
@@ -1014,6 +1015,32 @@ static void test_complex_object(void)
...
@@ -1014,6 +1015,32 @@ static void test_complex_object(void)
IDirectXFileEnumObject_Release
(
enum_object
);
IDirectXFileEnumObject_Release
(
enum_object
);
IDirectXFile_Release
(
dxfile
);
IDirectXFile_Release
(
dxfile
);
}
}
static
void
test_standard_templates
(
void
)
{
HRESULT
ret
;
IDirectXFile
*
dxfile
=
NULL
;
if
(
!
pDirectXFileCreate
)
{
win_skip
(
"DirectXFileCreate is not available
\n
"
);
return
;
}
ret
=
pDirectXFileCreate
(
&
dxfile
);
ok
(
ret
==
DXFILE_OK
,
"DirectXFileCreate failed with %#x
\n
"
,
ret
);
if
(
!
dxfile
)
{
skip
(
"Couldn't create DirectXFile interface
\n
"
);
return
;
}
ret
=
IDirectXFile_RegisterTemplates
(
dxfile
,
D3DRM_XTEMPLATES
,
D3DRM_XTEMPLATE_BYTES
);
ok
(
ret
==
DXFILE_OK
,
"IDirectXFileImpl_RegisterTemplates failed with %#x
\n
"
,
ret
);
IDirectXFile_Release
(
dxfile
);
}
/* Set it to 1 to expand the string when dumping the object. This is useful when there is
/* Set it to 1 to expand the string when dumping the object. This is useful when there is
* only one string in a sub-object (very common). Use with care, this may lead to a crash. */
* only one string in a sub-object (very common). Use with care, this may lead to a crash. */
#define EXPAND_STRING 0
#define EXPAND_STRING 0
...
@@ -1199,6 +1226,7 @@ START_TEST(d3dxof)
...
@@ -1199,6 +1226,7 @@ START_TEST(d3dxof)
test_syntax
();
test_syntax
();
test_syntax_semicolon_comma
();
test_syntax_semicolon_comma
();
test_complex_object
();
test_complex_object
();
test_standard_templates
();
test_dump
();
test_dump
();
FreeLibrary
(
hd3dxof
);
FreeLibrary
(
hd3dxof
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment