Nikolay Sivov : mf/tests: Add a test for default node attributes.
Alexandre Julliard
julliard at winehq.org
Fri Mar 13 15:24:44 CDT 2020
Module: wine
Branch: master
Commit: 38f94b48126c588734ce57981dafab25c1709521
URL: https://source.winehq.org/git/wine.git/?a=commit;h=38f94b48126c588734ce57981dafab25c1709521
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Mar 13 15:34:32 2020 +0300
mf/tests: Add a test for default node attributes.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mf/tests/mf.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c
index d799446676..dfbd928f60 100644
--- a/dlls/mf/tests/mf.c
+++ b/dlls/mf/tests/mf.c
@@ -150,6 +150,17 @@ static void test_topology(void)
IMFTopology_Release(topology2);
+ /* No attributes by default. */
+ for (node_type = MF_TOPOLOGY_OUTPUT_NODE; node_type < MF_TOPOLOGY_TEE_NODE; ++node_type)
+ {
+ hr = MFCreateTopologyNode(node_type, &node);
+ ok(hr == S_OK, "Failed to create a node for type %d, hr %#x.\n", node_type, hr);
+ hr = IMFTopologyNode_GetCount(node, &count);
+ ok(hr == S_OK, "Failed to get attribute count, hr %#x.\n", hr);
+ ok(!count, "Unexpected attribute count %u.\n", count);
+ IMFTopologyNode_Release(node);
+ }
+
hr = MFCreateTopologyNode(MF_TOPOLOGY_OUTPUT_NODE, NULL);
ok(hr == E_POINTER, "Unexpected hr %#x.\n", hr);
More information about the wine-cvs
mailing list