Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7bc167ac
Commit
7bc167ac
authored
May 26, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Initial tests for Rfc1766ToLcid.
parent
7317a966
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
Makefile.in
dlls/mlang/tests/Makefile.in
+1
-1
mlang.c
dlls/mlang/tests/mlang.c
+24
-0
No files found.
dlls/mlang/tests/Makefile.in
View file @
7bc167ac
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
mlang.dll
TESTDLL
=
mlang.dll
IMPORTS
=
oleaut32 ole32 gdi32 kernel32
IMPORTS
=
mlang
oleaut32 ole32 gdi32 kernel32
CTESTS
=
\
CTESTS
=
\
mlang.c
mlang.c
...
...
dlls/mlang/tests/mlang.c
View file @
7bc167ac
...
@@ -916,6 +916,28 @@ static void test_GetLcidFromRfc1766(IMultiLanguage2 *iML2)
...
@@ -916,6 +916,28 @@ static void test_GetLcidFromRfc1766(IMultiLanguage2 *iML2)
}
}
static
void
test_Rfc1766ToLcid
(
void
)
{
LCID
lcid
;
HRESULT
ret
;
DWORD
i
;
for
(
i
=
0
;
i
<
sizeof
(
lcid_table
)
/
sizeof
(
lcid_table
[
0
]);
i
++
)
{
lcid
=
-
1
;
ret
=
Rfc1766ToLcidA
(
&
lcid
,
lcid_table
[
i
].
rfc1766
);
ok
(
ret
==
lcid_table
[
i
].
hr
,
"#%02d: HRESULT 0x%x (expected 0x%x)
\n
"
,
i
,
ret
,
lcid_table
[
i
].
hr
);
ok
(
lcid
==
lcid_table
[
i
].
lcid
,
"#%02d: got LCID 0x%x (expected 0x%x)
\n
"
,
i
,
lcid
,
lcid_table
[
i
].
lcid
);
}
}
static
void
test_GetRfc1766FromLcid
(
IMultiLanguage2
*
iML2
)
static
void
test_GetRfc1766FromLcid
(
IMultiLanguage2
*
iML2
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
@@ -1502,6 +1524,8 @@ START_TEST(mlang)
...
@@ -1502,6 +1524,8 @@ START_TEST(mlang)
return
;
return
;
CoInitialize
(
NULL
);
CoInitialize
(
NULL
);
test_Rfc1766ToLcid
();
ret
=
CoCreateInstance
(
&
CLSID_CMultiLanguage
,
NULL
,
CLSCTX_INPROC_SERVER
,
ret
=
CoCreateInstance
(
&
CLSID_CMultiLanguage
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMultiLanguage2
,
(
void
**
)
&
iML2
);
&
IID_IMultiLanguage2
,
(
void
**
)
&
iML2
);
if
(
ret
!=
S_OK
||
!
iML2
)
return
;
if
(
ret
!=
S_OK
||
!
iML2
)
return
;
...
...
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