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
a6047aee
Commit
a6047aee
authored
May 04, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
May 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/tests: Test audio capture pin information.
parent
b9b425d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
audiorecord.c
dlls/qcap/tests/audiorecord.c
+31
-0
No files found.
dlls/qcap/tests/audiorecord.c
View file @
a6047aee
...
...
@@ -312,6 +312,36 @@ static void test_unconnected_filter_state(IBaseFilter *filter)
ok
(
state
==
State_Stopped
,
"Got state %u.
\n
"
,
state
);
}
static
void
test_pin_info
(
IBaseFilter
*
filter
)
{
PIN_DIRECTION
dir
;
PIN_INFO
info
;
HRESULT
hr
;
WCHAR
*
id
;
IPin
*
pin
;
hr
=
IBaseFilter_FindPin
(
filter
,
L"Capture"
,
&
pin
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IPin_QueryPinInfo
(
pin
,
&
info
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
info
.
pFilter
==
filter
,
"Expected filter %p, got %p.
\n
"
,
filter
,
info
.
pFilter
);
ok
(
info
.
dir
==
PINDIR_OUTPUT
,
"Got direction %d.
\n
"
,
info
.
dir
);
ok
(
!
wcscmp
(
info
.
achName
,
L"Capture"
),
"Got name %s.
\n
"
,
debugstr_w
(
info
.
achName
));
IBaseFilter_Release
(
info
.
pFilter
);
hr
=
IPin_QueryDirection
(
pin
,
&
dir
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
dir
==
PINDIR_OUTPUT
,
"Got direction %d.
\n
"
,
dir
);
hr
=
IPin_QueryId
(
pin
,
&
id
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
!
wcscmp
(
id
,
L"Capture"
),
"Got id %s.
\n
"
,
debugstr_w
(
id
));
CoTaskMemFree
(
id
);
IPin_Release
(
pin
);
}
START_TEST
(
audiorecord
)
{
ICreateDevEnum
*
devenum
;
...
...
@@ -353,6 +383,7 @@ START_TEST(audiorecord)
test_interfaces
(
filter
);
test_unconnected_filter_state
(
filter
);
test_pin_info
(
filter
);
ref
=
IBaseFilter_Release
(
filter
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
...
...
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