search for: t_apifunct

Displaying 1 result from an estimated 1 matches for "t_apifunct".

2010 May 27
1
[PATCH matahari] Introduces a multiplexer for taking requests and mapping them to APIs.
...xer::setUp() +{ + Multiplexer::instance()->registerAPI(APINAME, test_callback_function); +} + +void +TestMultiplexer::testUnregisteredAPIIsNull() +{ + CPPUNIT_ASSERT(NULL == Multiplexer::instance()->getAPI(APINAME + "!")); +} + +void +TestMultiplexer::testRegisterAPIMethod() +{ + t_apifunction apifunction = test_callback_function; + + CPPUNIT_ASSERT(apifunction == Multiplexer::instance()->getAPI(APINAME)); +} + +void +TestMultiplexer::testEnsureCallingAnUnregisteredAPIFails() +{ + string input = string("This is some input"); + string result = Multiplexer::instance()-&...