Displaying 1 result from an estimated 1 matches for "cppunit_assert".
2010 May 27
1
[PATCH matahari] Introduces a multiplexer for taking requests and mapping them to APIs.
...r>
+ ("testEnsureAPIIsCalled",
+ &TestMultiplexer::testEnsureAPIIsCalled));
+
+ return result;
+}
+
+void
+TestMultiplexer::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::testEnsu...