Home
last modified time | relevance | path

Searched refs:CppUnit (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/haiku/headers/tools/cppunit/
H A DThreadedTestCaller.h16 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 DThreadManager.h23 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 DTestSuite.h9 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 DTestListener.h7 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 DTestShell.h28 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 DHelperMacros.h14 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 DJsonEndToEndTest.cpp252 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 DStringUtilsTest.cpp113 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 DValidationUtilsTest.cpp151 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 DStandardMetaDataJsonEventListenerTest.cpp115 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 DDataTest.cpp132 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 DLanguageTest.cpp139 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 DNumberFormatTest.cpp70 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 DSimpleTransformTest.cpp225 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 DCryptTest.cpp125 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 DTestAssert.h9 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 DAVLTreeMapTest.cpp15 CppUnit::Test*
18 CppUnit::TestSuite *suite = new CppUnit::TestSuite("AVLTreeMap"); in Suite()
20 suite->addTest(new CppUnit::TestCaller<AVLTreeMapTest>( in Suite()
H A DBOpenHashTableTest.cpp71 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 DDoublyLinkedListTest.cpp72 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 DBTestSuite.cpp26 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 DNetworkUrlTest.cpp433 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 DNetworkAddressTest.cpp179 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 DSettingsParserTest.cpp414 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 DMessageRunnerTest.cpp7 CppUnit::Test* MessageRunnerTestSuite() in MessageRunnerTestSuite()
9 CppUnit::TestSuite *testSuite = new CppUnit::TestSuite(); in MessageRunnerTestSuite()
/haiku/src/tests/kits/storage/
H A DDataIOTest.cpp11 CppUnit::Test*
13 CppUnit::TestSuite *suite = new CppUnit::TestSuite(); in Suite()
14 typedef CppUnit::TestCaller<DataIOTest> TC; in Suite()

12345678910>>...14