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
5f4f215c
Commit
5f4f215c
authored
Dec 19, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl100: Added AtlWinModuleExtractCreateWndData tests.
parent
c0456aea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
atl.c
dlls/atl100/tests/atl.c
+42
-0
No files found.
dlls/atl100/tests/atl.c
View file @
5f4f215c
...
@@ -27,7 +27,9 @@
...
@@ -27,7 +27,9 @@
static
void
test_winmodule
(
void
)
static
void
test_winmodule
(
void
)
{
{
_AtlCreateWndData
create_data
[
3
];
_ATL_WIN_MODULE
winmod
;
_ATL_WIN_MODULE
winmod
;
void
*
p
;
HRESULT
hres
;
HRESULT
hres
;
winmod
.
cbSize
=
0xdeadbeef
;
winmod
.
cbSize
=
0xdeadbeef
;
...
@@ -51,6 +53,46 @@ static void test_winmodule(void)
...
@@ -51,6 +53,46 @@ static void test_winmodule(void)
winmod
.
m_rgWindowClassAtoms
.
m_nSize
);
winmod
.
m_rgWindowClassAtoms
.
m_nSize
);
ok
(
winmod
.
m_rgWindowClassAtoms
.
m_nAllocSize
==
0xdeadbeef
,
"winmod.m_rgWindowClassAtoms.m_nAllocSize = %d
\n
"
,
ok
(
winmod
.
m_rgWindowClassAtoms
.
m_nAllocSize
==
0xdeadbeef
,
"winmod.m_rgWindowClassAtoms.m_nAllocSize = %d
\n
"
,
winmod
.
m_rgWindowClassAtoms
.
m_nAllocSize
);
winmod
.
m_rgWindowClassAtoms
.
m_nAllocSize
);
InitializeCriticalSection
(
&
winmod
.
m_csWindowCreate
);
AtlWinModuleAddCreateWndData
(
&
winmod
,
create_data
,
(
void
*
)
0xdead0001
);
ok
(
winmod
.
m_pCreateWndList
==
create_data
,
"winmod.m_pCreateWndList != create_data
\n
"
);
ok
(
create_data
[
0
].
m_pThis
==
(
void
*
)
0xdead0001
,
"unexpected create_data[0].m_pThis %p
\n
"
,
create_data
[
0
].
m_pThis
);
ok
(
create_data
[
0
].
m_dwThreadID
==
GetCurrentThreadId
(),
"unexpected create_data[0].m_dwThreadID %x
\n
"
,
create_data
[
0
].
m_dwThreadID
);
ok
(
!
create_data
[
0
].
m_pNext
,
"unexpected create_data[0].m_pNext %p
\n
"
,
create_data
[
0
].
m_pNext
);
AtlWinModuleAddCreateWndData
(
&
winmod
,
create_data
+
1
,
(
void
*
)
0xdead0002
);
ok
(
winmod
.
m_pCreateWndList
==
create_data
+
1
,
"winmod.m_pCreateWndList != create_data
\n
"
);
ok
(
create_data
[
1
].
m_pThis
==
(
void
*
)
0xdead0002
,
"unexpected create_data[1].m_pThis %p
\n
"
,
create_data
[
1
].
m_pThis
);
ok
(
create_data
[
1
].
m_dwThreadID
==
GetCurrentThreadId
(),
"unexpected create_data[1].m_dwThreadID %x
\n
"
,
create_data
[
1
].
m_dwThreadID
);
ok
(
create_data
[
1
].
m_pNext
==
create_data
,
"unexpected create_data[1].m_pNext %p
\n
"
,
create_data
[
1
].
m_pNext
);
AtlWinModuleAddCreateWndData
(
&
winmod
,
create_data
+
2
,
(
void
*
)
0xdead0003
);
ok
(
winmod
.
m_pCreateWndList
==
create_data
+
2
,
"winmod.m_pCreateWndList != create_data
\n
"
);
ok
(
create_data
[
2
].
m_pThis
==
(
void
*
)
0xdead0003
,
"unexpected create_data[2].m_pThis %p
\n
"
,
create_data
[
2
].
m_pThis
);
ok
(
create_data
[
2
].
m_dwThreadID
==
GetCurrentThreadId
(),
"unexpected create_data[2].m_dwThreadID %x
\n
"
,
create_data
[
2
].
m_dwThreadID
);
ok
(
create_data
[
2
].
m_pNext
==
create_data
+
1
,
"unexpected create_data[2].m_pNext %p
\n
"
,
create_data
[
2
].
m_pNext
);
p
=
AtlWinModuleExtractCreateWndData
(
&
winmod
);
ok
(
p
==
(
void
*
)
0xdead0003
,
"unexpected AtlWinModuleExtractCreateWndData result %p
\n
"
,
p
);
ok
(
winmod
.
m_pCreateWndList
==
create_data
+
1
,
"winmod.m_pCreateWndList != create_data
\n
"
);
ok
(
create_data
[
2
].
m_pNext
==
create_data
+
1
,
"unexpected create_data[2].m_pNext %p
\n
"
,
create_data
[
2
].
m_pNext
);
create_data
[
1
].
m_dwThreadID
=
0xdeadbeef
;
p
=
AtlWinModuleExtractCreateWndData
(
&
winmod
);
ok
(
p
==
(
void
*
)
0xdead0001
,
"unexpected AtlWinModuleExtractCreateWndData result %p
\n
"
,
p
);
ok
(
winmod
.
m_pCreateWndList
==
create_data
+
1
,
"winmod.m_pCreateWndList != create_data
\n
"
);
ok
(
!
create_data
[
0
].
m_pNext
,
"unexpected create_data[0].m_pNext %p
\n
"
,
create_data
[
0
].
m_pNext
);
ok
(
!
create_data
[
1
].
m_pNext
+
1
,
"unexpected create_data[1].m_pNext %p
\n
"
,
create_data
[
1
].
m_pNext
);
p
=
AtlWinModuleExtractCreateWndData
(
&
winmod
);
ok
(
!
p
,
"unexpected AtlWinModuleExtractCreateWndData result %p
\n
"
,
p
);
ok
(
winmod
.
m_pCreateWndList
==
create_data
+
1
,
"winmod.m_pCreateWndList != create_data
\n
"
);
}
}
START_TEST
(
atl
)
START_TEST
(
atl
)
...
...
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