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
22143816
Commit
22143816
authored
Aug 01, 2013
by
Qian Hong
Committed by
Alexandre Julliard
Aug 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32/tests: Added test for IMCC lock count.
parent
44f60067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
imm32.c
dlls/imm32/tests/imm32.c
+23
-0
No files found.
dlls/imm32/tests/imm32.c
View file @
22143816
...
...
@@ -712,6 +712,28 @@ static void test_ImmGetIMCLockCount(void)
ImmDestroyContext
(
imc
);
}
static
void
test_ImmGetIMCCLockCount
(
void
)
{
HIMCC
imcc
;
DWORD
count
,
ret
;
imcc
=
ImmCreateIMCC
(
sizeof
(
CANDIDATEINFO
));
count
=
ImmGetIMCCLockCount
(
imcc
);
ok
(
count
==
0
,
"expect 0, returned %d
\n
"
,
count
);
ImmLockIMCC
(
imcc
);
count
=
ImmGetIMCCLockCount
(
imcc
);
ok
(
count
==
1
,
"expect 1, returned %d
\n
"
,
count
);
ret
=
ImmUnlockIMCC
(
imcc
);
ok
(
ret
==
FALSE
,
"expect FALSE, ret %d
\n
"
,
ret
);
count
=
ImmGetIMCCLockCount
(
imcc
);
ok
(
count
==
0
,
"expect 0, returned %d
\n
"
,
count
);
ret
=
ImmUnlockIMCC
(
imcc
);
todo_wine
ok
(
ret
==
FALSE
,
"expect FALSE, ret %d
\n
"
,
ret
);
count
=
ImmGetIMCCLockCount
(
imcc
);
todo_wine
ok
(
count
==
0
,
"expect 0, returned %d
\n
"
,
count
);
ImmDestroyIMCC
(
imcc
);
}
static
void
test_ImmMessages
(
void
)
{
CANDIDATEFORM
cf
;
...
...
@@ -872,6 +894,7 @@ START_TEST(imm32) {
test_ImmGetDescription
();
test_ImmDefaultHwnd
();
test_ImmGetIMCLockCount
();
test_ImmGetIMCCLockCount
();
msg_spy_cleanup
();
/* Reinitialize the hooks to capture all windows */
msg_spy_init
(
NULL
);
...
...
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