MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / OnNodeDestruction

Function OnNodeDestruction

Testing/OpenNITester/ProductionGraphEvents_C.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void OnNodeDestruction(ExpectedInvocation* pExpectedInvocation, XnContext* pContext, const XnChar* strDestroyedNodeName, void* pCookie)
65{
66 EXPECT_EQ(pExpectedInvocation->pContext, pContext);
67 EXPECT_EQ(pExpectedInvocation->pCookie, pCookie);
68 EXPECT_FALSE(pExpectedInvocation->bInvoked);
69 pExpectedInvocation->bInvoked = TRUE;
70
71 const XnChar* strNull = NULL;
72 ASSERT_NE(strNull, strDestroyedNodeName);
73 EXPECT_STRCASEEQ(pExpectedInvocation->strName, strDestroyedNodeName);
74}
75
76void XN_CALLBACK_TYPE OnNodeDestruction1(XnContext* pContext, const XnChar* strDestroyedNodeName, void* pCookie)
77{

Calls

no outgoing calls

Tested by

no test coverage detected