/haiku/headers/tools/cppunit/ |
H A D | ThreadedTestCaller.h | 16 template <class TestClass, class ExpectedException = CppUnit::NoExceptionExpected> 17 class CPPUNIT_API BThreadedTestCaller : public CppUnit::TestCase { 29 virtual CppUnit::TestResult *run(); 30 virtual void run(CppUnit::TestResult *result); 96 …throw CppUnit::Exception("BThreadedTestCaller::addThread() - Attempt to add thread under duplicate… in addThread() 102 CppUnit::TestResult * 104 CppUnit::TestResult *result = new CppUnit::TestResult; in run() 111 BThreadedTestCaller<TestClass, ExpectedException>::run(CppUnit::TestResult *result) { in run() 115 …throw CppUnit::Exception("BThreadedTestCaller::run() -- No threads added to BThreadedTestCaller()"… in run() 137 throw CppUnit::Exception("BThreadedTestCaller::run() -- Error creating fThreadSem"); in run() [all …]
|
H A D | ThreadManager.h | 23 status_t LaunchThread(CppUnit::TestResult *result); 37 CppUnit::TestResult *fTestResult; 108 BThreadManager<TestClass, ExpectedException>::LaunchThread(CppUnit::TestResult *result) { in LaunchThread() 123 throw CppUnit::Exception("BThreadManager::LaunchThread() -- Error acquiring thread semaphore"); in LaunchThread() 149 throw CppUnit::Exception("BThreadManager::Run() -- NULL fObject pointer"); in Run() 167 CppUnit::ExpectedExceptionTraits<ExpectedException>::expectedException(); in Run() 169 } catch ( CppUnit::Exception &e ) { in Run() 171 CppUnit::Exception *threadException = new CppUnit::Exception( in Run() 179 CppUnit::Exception *threadException = new CppUnit::Exception( in Run() 186 CppUnit::Exception *threadException = new CppUnit::Exception( in Run()
|
H A D | TestSuite.h | 9 namespace CppUnit { 14 class CPPUNIT_API BTestSuite : public CppUnit::Test { 19 virtual void run(CppUnit::TestResult *result); 24 virtual void addTest(std::string name, CppUnit::Test *test); 27 const std::map<std::string, CppUnit::Test*> &getTests() const; 30 std::map<std::string, CppUnit::Test*> fTests;
|
H A D | TestListener.h | 7 namespace CppUnit { 21 class CPPUNIT_API BTestListener : public CppUnit::TestListener { 23 virtual void startTest( CppUnit::Test *test ); 24 virtual void addFailure( const CppUnit::TestFailure &failure ); 25 virtual void endTest( CppUnit::Test *test );
|
H A D | TestShell.h | 28 typedef CppUnit::Test* (*SuiteFunction)(void); 31 typedef CppUnit::SynchronizedObject::SynchronizationObject SyncObject; 40 ::CppUnit::Asserter::failIf( \ 69 void AddTest(const std::string &name, CppUnit::Test* test); 109 typedef std::map<std::string, CppUnit::Test*> TestMap; 118 CppUnit::TestResult fTestResults; 119 CppUnit::TestResultCollector fResultsCollector;
|
/haiku/headers/tools/cppunit/cppunit/extensions/ |
H A D | HelperMacros.h | 14 namespace CppUnit 24 virtual CppUnit::TestFixture *makeFixture() =0; 127 class ThisTestFixtureFactory : public CppUnit::TestFixtureFactory \ 129 virtual CppUnit::TestFixture *makeFixture() \ 136 registerTests( CppUnit::TestSuite *suite, \ 137 CppUnit::TestFixtureFactory *factory ) \ 139 CppUnit::TestSuiteBuilder<__ThisTestFixtureType> builder( suite ); 236 CPPUNIT_TEST_EXCEPTION( testMethod, CppUnit::Exception ) 248 static CppUnit::TestSuite *suite() \ 250 CppUnit::TestSuiteBuilder<__ThisTestFixtureType> \ [all …]
|
/haiku/src/tests/kits/shared/ |
H A D | JsonEndToEndTest.cpp | 252 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("JsonEndToEndTest"); in AddTests() 254 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 256 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 258 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 260 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 262 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 264 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 266 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 268 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() 270 suite.addTest(new CppUnit::TestCaller<JsonEndToEndTest>( in AddTests() [all …]
|
/haiku/src/tests/apps/haikudepot/ |
H A D | StringUtilsTest.cpp | 113 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("StringUtilsTest"); in AddTests() 116 new CppUnit::TestCaller<StringUtilsTest>( in AddTests() 120 new CppUnit::TestCaller<StringUtilsTest>( in AddTests() 124 new CppUnit::TestCaller<StringUtilsTest>( in AddTests() 128 new CppUnit::TestCaller<StringUtilsTest>( in AddTests() 133 new CppUnit::TestCaller<StringUtilsTest>( in AddTests() 137 new CppUnit::TestCaller<StringUtilsTest>( in AddTests()
|
H A D | ValidationUtilsTest.cpp | 151 CppUnit::TestSuite& suite = *new CppUnit::TestSuite( in AddTests() 155 new CppUnit::TestCaller<ValidationUtilsTest>( in AddTests() 159 new CppUnit::TestCaller<ValidationUtilsTest>( in AddTests() 163 new CppUnit::TestCaller<ValidationUtilsTest>( in AddTests() 167 new CppUnit::TestCaller<ValidationUtilsTest>( in AddTests() 171 new CppUnit::TestCaller<ValidationUtilsTest>( in AddTests() 175 new CppUnit::TestCaller<ValidationUtilsTest>( in AddTests()
|
H A D | StandardMetaDataJsonEventListenerTest.cpp | 115 CppUnit::TestSuite& suite = *new CppUnit::TestSuite( in AddTests() 119 new CppUnit::TestCaller<StandardMetaDataJsonEventListenerTest>( in AddTests() 124 new CppUnit::TestCaller<StandardMetaDataJsonEventListenerTest>( in AddTests() 129 new CppUnit::TestCaller<StandardMetaDataJsonEventListenerTest>( in AddTests() 134 new CppUnit::TestCaller<StandardMetaDataJsonEventListenerTest>( in AddTests()
|
/haiku/src/tests/kits/net/service/ |
H A D | DataTest.cpp | 132 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("DataTest"); in AddTests() 134 suite.addTest(new CppUnit::TestCaller<DataTest>( in AddTests() 136 suite.addTest(new CppUnit::TestCaller<DataTest>( in AddTests() 138 suite.addTest(new CppUnit::TestCaller<DataTest>( in AddTests() 140 suite.addTest(new CppUnit::TestCaller<DataTest>( in AddTests() 142 suite.addTest(new CppUnit::TestCaller<DataTest>( in AddTests() 144 suite.addTest(new CppUnit::TestCaller<DataTest>( in AddTests()
|
/haiku/src/tests/kits/locale/ |
H A D | LanguageTest.cpp | 139 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("LanguageTest"); in AddTests() 141 suite.addTest(new CppUnit::TestCaller<LanguageTest>( in AddTests() 144 suite.addTest(new CppUnit::TestCaller<LanguageTest>( in AddTests() 147 suite.addTest(new CppUnit::TestCaller<LanguageTest>( in AddTests() 150 suite.addTest(new CppUnit::TestCaller<LanguageTest>( in AddTests() 154 suite.addTest(new CppUnit::TestCaller<LanguageTest>( in AddTests() 157 suite.addTest(new CppUnit::TestCaller<LanguageTest>( in AddTests() 160 suite.addTest(new CppUnit::TestCaller<LanguageTest>( in AddTests()
|
H A D | NumberFormatTest.cpp | 70 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("NumberFormatTest"); in AddTests() 72 suite.addTest(new CppUnit::TestCaller<NumberFormatTest>( in AddTests() 75 suite.addTest(new CppUnit::TestCaller<NumberFormatTest>( in AddTests() 78 suite.addTest(new CppUnit::TestCaller<NumberFormatTest>( in AddTests()
|
/haiku/src/tests/servers/app/unit_tests/ |
H A D | SimpleTransformTest.cpp | 225 CppUnit::TestSuite* const suite = new CppUnit::TestSuite( in AddTests() 228 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 231 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 234 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 237 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 240 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 243 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 246 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 249 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() 252 suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>( in AddTests() [all …]
|
/haiku/src/tests/system/libroot/posix/ |
H A D | CryptTest.cpp | 125 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("CryptTest"); in AddTests() 126 suite.addTest(new CppUnit::TestCaller<CryptTest>( in AddTests() 129 suite.addTest(new CppUnit::TestCaller<CryptTest>( in AddTests() 132 suite.addTest(new CppUnit::TestCaller<CryptTest>( in AddTests() 135 suite.addTest(new CppUnit::TestCaller<CryptTest>( in AddTests() 138 suite.addTest(new CppUnit::TestCaller<CryptTest>( in AddTests() 141 suite.addTest(new CppUnit::TestCaller<CryptTest>( in AddTests()
|
/haiku/headers/tools/cppunit/cppunit/ |
H A D | TestAssert.h | 9 namespace CppUnit { 122 ( ::CppUnit::Asserter::failIf( !(condition), \ 127 ( ::CppUnit::Asserter::failIf( !(condition), \ 140 ( ::CppUnit::Asserter::failIf( !(condition), \ 149 ( ::CppUnit::Asserter::fail( message, \ 155 ( ::CppUnit::TestAssert::assertEquals( (expected), \ 176 ( ::CppUnit::TestAssert::assertEquals<typeof(expected)>( (expected), \ 199 ( ::CppUnit::TestAssert::assertEquals<typeof(expected)>( (expected), \ 209 ( ::CppUnit::TestAssert::assertDoubleEquals( (expected), \
|
/haiku/src/tests/system/kernel/util/ |
H A D | AVLTreeMapTest.cpp | 15 CppUnit::Test* 18 CppUnit::TestSuite *suite = new CppUnit::TestSuite("AVLTreeMap"); in Suite() 20 suite->addTest(new CppUnit::TestCaller<AVLTreeMapTest>( in Suite()
|
H A D | BOpenHashTableTest.cpp | 71 CppUnit::Test* BOpenHashTableTest::Suite() in Suite() 73 CppUnit::TestSuite* suite = new CppUnit::TestSuite("BOpenHashTable"); in Suite() 75 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() 78 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() 81 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() 84 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() 87 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() 90 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() 93 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() 96 suite->addTest(new CppUnit::TestCaller<BOpenHashTableTest>( in Suite() [all …]
|
H A D | DoublyLinkedListTest.cpp | 72 CppUnit::Test* 74 CppUnit::TestSuite *suite = new CppUnit::TestSuite("DLL"); in Suite() 76 …suite->addTest(new CppUnit::TestCaller<DoublyLinkedListTest>("DoublyLinkedList::no offset", &Doubl… in Suite() 77 …suite->addTest(new CppUnit::TestCaller<DoublyLinkedListTest>("DoublyLinkedList::with offset", &Dou… in Suite() 78 …suite->addTest(new CppUnit::TestCaller<DoublyLinkedListTest>("DoublyLinkedList::virtual no offset"… in Suite() 79 …suite->addTest(new CppUnit::TestCaller<DoublyLinkedListTest>("DoublyLinkedList::virtual with offse… in Suite()
|
/haiku/src/tools/cppunit/ |
H A D | BTestSuite.cpp | 26 for ( map<string, CppUnit::Test*>::iterator it = fTests.begin(); in deleteContents() 37 BTestSuite::run( CppUnit::TestResult *result ) { in run() 38 for ( map<string, CppUnit::Test*>::iterator it = fTests.begin(); in run() 57 for ( map<string, CppUnit::Test *>::const_iterator it = fTests.begin(); in countTestCases() 69 BTestSuite::addTest(string name, CppUnit::Test *test) { in addTest() 91 const map<string, CppUnit::Test*> &
|
/haiku/src/tests/kits/net/libnetapi/ |
H A D | NetworkUrlTest.cpp | 433 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("NetworkUrlTest"); in AddTests() 435 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 438 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 441 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 444 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 447 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 450 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 453 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 456 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() 459 suite.addTest(new CppUnit::TestCaller<NetworkUrlTest>( in AddTests() [all …]
|
H A D | NetworkAddressTest.cpp | 179 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("NetworkAddressTest"); in AddTests() 181 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests() 183 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests() 185 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests() 187 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests() 189 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests() 192 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests() 194 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests() 196 suite.addTest(new CppUnit::TestCaller<NetworkAddressTest>( in AddTests()
|
/haiku/src/tests/servers/launch/ |
H A D | SettingsParserTest.cpp | 414 CppUnit::TestSuite& suite = *new CppUnit::TestSuite("SettingsParserTest"); in AddTests() 417 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 420 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 423 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 426 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 429 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 432 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 435 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 438 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() 441 suite.addTest(new CppUnit::TestCaller<SettingsParserTest>( in AddTests() [all …]
|
/haiku/src/tests/kits/app/bmessagerunner/ |
H A D | MessageRunnerTest.cpp | 7 CppUnit::Test* MessageRunnerTestSuite() in MessageRunnerTestSuite() 9 CppUnit::TestSuite *testSuite = new CppUnit::TestSuite(); in MessageRunnerTestSuite()
|
/haiku/src/tests/kits/storage/ |
H A D | DataIOTest.cpp | 11 CppUnit::Test* 13 CppUnit::TestSuite *suite = new CppUnit::TestSuite(); in Suite() 14 typedef CppUnit::TestCaller<DataIOTest> TC; in Suite()
|