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

Function OnNodeDestruction

Testing/OpenNITester/ProductionGraphEvents_Cpp.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void OnNodeDestruction(ExpectedInvocation* pExpectedInvocation, Context& context, const XnChar* strDestroyedNodeName, void* pCookie)
68{
69 EXPECT_XN_TRUE(pExpectedInvocation->context == context);
70 EXPECT_EQ(pExpectedInvocation->pCookie, pCookie);
71 EXPECT_FALSE(pExpectedInvocation->bInvoked);
72 pExpectedInvocation->bInvoked = TRUE;
73
74 const XnChar* strNull = NULL;
75 ASSERT_NE(strNull, strDestroyedNodeName);
76 EXPECT_STRCASEEQ(pExpectedInvocation->strName, strDestroyedNodeName);
77}
78
79void XN_CALLBACK_TYPE OnNodeDestruction1(Context& context, const XnChar* strDestroyedNodeName, void* pCookie)
80{

Calls

no outgoing calls

Tested by

no test coverage detected