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
f5dfa211
Commit
f5dfa211
authored
Mar 10, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Mar 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm/tests: Add tests for IDirect3DRMFrameArray_GetElement.
parent
c7674363
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
d3drm.c
dlls/d3drm/tests/d3drm.c
+30
-0
No files found.
dlls/d3drm/tests/d3drm.c
View file @
f5dfa211
/*
* Copyright 2010 Christian Costa
* Copyright 2012 André Hentschel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -268,6 +269,9 @@ static void test_Frame(void)
{
count
=
IDirect3DRMFrameArray_GetSize
(
pArray
);
ok
(
count
==
0
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
0
,
&
pFrameTmp
);
ok
(
hr
==
D3DRMERR_BADVALUE
,
"Should have returned D3DRMERR_BADVALUE (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
NULL
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrameArray_Release
(
pArray
);
}
...
...
@@ -301,6 +305,10 @@ static void test_Frame(void)
{
count
=
IDirect3DRMFrameArray_GetSize
(
pArray
);
ok
(
count
==
1
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
0
,
&
pFrameTmp
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get element (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
pFrameC
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrame_Release
(
pFrameTmp
);
IDirect3DRMFrameArray_Release
(
pArray
);
}
...
...
@@ -325,6 +333,10 @@ static void test_Frame(void)
{
count
=
IDirect3DRMFrameArray_GetSize
(
pArray
);
ok
(
count
==
1
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
0
,
&
pFrameTmp
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get element (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
pFrameC
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrame_Release
(
pFrameTmp
);
IDirect3DRMFrameArray_Release
(
pArray
);
}
...
...
@@ -335,6 +347,9 @@ static void test_Frame(void)
{
count
=
IDirect3DRMFrameArray_GetSize
(
pArray
);
ok
(
count
==
0
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
0
,
&
pFrameTmp
);
ok
(
hr
==
D3DRMERR_BADVALUE
,
"Should have returned D3DRMERR_BADVALUE (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
NULL
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrameArray_Release
(
pArray
);
}
...
...
@@ -357,6 +372,10 @@ static void test_Frame(void)
{
count
=
IDirect3DRMFrameArray_GetSize
(
pArray
);
ok
(
count
==
1
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
0
,
&
pFrameTmp
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get element (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
pFrameC
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrame_Release
(
pFrameTmp
);
IDirect3DRMFrameArray_Release
(
pArray
);
}
...
...
@@ -372,6 +391,9 @@ static void test_Frame(void)
{
count
=
IDirect3DRMFrameArray_GetSize
(
pArray
);
ok
(
count
==
0
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
0
,
&
pFrameTmp
);
ok
(
hr
==
D3DRMERR_BADVALUE
,
"Should have returned D3DRMERR_BADVALUE (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
NULL
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrameArray_Release
(
pArray
);
}
...
...
@@ -396,6 +418,14 @@ static void test_Frame(void)
{
count
=
IDirect3DRMFrameArray_GetSize
(
pArray
);
ok
(
count
==
2
,
"count = %u
\n
"
,
count
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
0
,
&
pFrameTmp
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get element (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
pFrameC
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrame_Release
(
pFrameTmp
);
hr
=
IDirect3DRMFrameArray_GetElement
(
pArray
,
1
,
&
pFrameTmp
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get element (hr = %x)
\n
"
,
hr
);
ok
(
pFrameTmp
==
pFrameP1
,
"pFrameTmp = %p
\n
"
,
pFrameTmp
);
IDirect3DRMFrame_Release
(
pFrameTmp
);
IDirect3DRMFrameArray_Release
(
pArray
);
}
...
...
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