Displaying 1 result from an estimated 1 matches for "testensureapiiscalled".
2010 May 27
1
[PATCH matahari] Introduces a multiplexer for taking requests and mapping them to APIs.
...egisterAPIMethod));
+ result->addTest(new CppUnit::TestCaller<TestMultiplexer>
+ ("testEnsureCallingAnUnregisteredAPIFails",
+ &TestMultiplexer::testEnsureCallingAnUnregisteredAPIFails));
+ result->addTest(new CppUnit::TestCaller<TestMultiplexer>
+ ("testEnsureAPIIsCalled",
+ &TestMultiplexer::testEnsureAPIIsCalled));
+
+ return result;
+}
+
+void
+TestMultiplexer::setUp()
+{
+ Multiplexer::instance()->registerAPI(APINAME, test_callback_function);
+}
+
+void
+TestMultiplexer::testUnregisteredAPIIsNull()
+{
+ CPPUNIT_ASSERT(NULL == Multiplexer::ins...