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
a67b9e79
Commit
a67b9e79
authored
Oct 22, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi: Add Voice enum tests.
parent
c651cf19
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
token.c
dlls/sapi/tests/token.c
+36
-0
No files found.
dlls/sapi/tests/token.c
View file @
a67b9e79
...
...
@@ -191,6 +191,41 @@ static void test_default_token_id(void)
ISpObjectTokenCategory_Release
(
cat
);
}
static
void
tests_token_voices
(
void
)
{
ISpObjectTokenCategory
*
cat
;
HRESULT
hr
;
IEnumSpObjectTokens
*
tokens
;
ISpObjectToken
*
item
;
ULONG
fetched
=
0
;
ULONG
count
;
hr
=
CoCreateInstance
(
&
CLSID_SpObjectTokenCategory
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ISpObjectTokenCategory
,
(
void
**
)
&
cat
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
hr
=
ISpObjectTokenCategory_SetId
(
cat
,
SPCAT_VOICES
,
FALSE
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
hr
=
ISpObjectTokenCategory_EnumTokens
(
cat
,
NULL
,
NULL
,
&
tokens
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
hr
=
IEnumSpObjectTokens_GetCount
(
tokens
,
&
count
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
count
!=
0
,
"got %lu
\n
"
,
count
);
ISpObjectTokenCategory_Release
(
cat
);
hr
=
IEnumSpObjectTokens_Item
(
tokens
,
0
,
&
item
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ISpObjectToken_Release
(
item
);
hr
=
IEnumSpObjectTokens_Next
(
tokens
,
1
,
&
item
,
&
fetched
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ISpObjectToken_Release
(
item
);
IEnumSpObjectTokens_Release
(
tokens
);
}
static
void
test_object_token
(
void
)
{
ISpObjectToken
*
token
;
...
...
@@ -331,5 +366,6 @@ START_TEST(token)
test_token_enum
();
test_default_token_id
();
test_object_token
();
tests_token_voices
();
CoUninitialize
();
}
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