// getTestSuite
BTestSuite*
getTestSuite()
{
	BTestSuite *suite = new BTestSuite("NumberFormat");

	suite->addTest("BGenericNumberFormat", GenericNumberFormatTestSuite());

	return suite;
}
BTestSuite *
getTestSuite()
{
	BTestSuite *suite = new BTestSuite("Interface");

	// ##### Add test suites here #####
	suite->addTest("BAlert", AlertTest::Suite());
	suite->addTest("BBitmap", BitmapTestSuite());
	suite->addTest("BDeskbar", DeskbarTestSuite());
	suite->addTest("BPolygon", PolygonTestSuite());
	suite->addTest("BRegion", RegionTestSuite());
	//suite->addTest("_BWidthBuffer_", WidthBufferTestSuite());
	suite->addTest("GraphicsDefs", GraphicsDefsTestSuite());

	return suite;
}
Exemplo n.º 3
0
/*static*/ void
LanguageTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite("LanguageTest");

	suite.addTest(new CppUnit::TestCaller<LanguageTest>(
		"LanguageTest::TestLanguage", &LanguageTest::TestLanguage));

	parent.addTest("LanguageTest", &suite);
}
Exemplo n.º 4
0
/*static*/ void
UtilityTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite("UtilityTest");

	suite.addTest(new CppUnit::TestCaller<UtilityTest>(
		"UtilityTest::TestTranslatePath", &UtilityTest::TestTranslatePath));

	parent.addTest("UtilityTest", &suite);
}
Exemplo n.º 5
0
/*static*/ void
FormatDescriptionsTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite("FormatDescriptionsTest");

	suite.addTest(new CppUnit::TestCaller<FormatDescriptionsTest>(
		"FormatDescriptionsTest::TestCompare",
		&FormatDescriptionsTest::TestCompare));

	parent.addTest("FormatDescriptionsTest", &suite);
}
Exemplo n.º 6
0
/*static*/ void
DurationFormatTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite("DurationFormatTest");

	suite.addTest(new CppUnit::TestCaller<DurationFormatTest>(
		"DurationFormatTest::TestDefault", &DurationFormatTest::TestDefault));
	suite.addTest(new CppUnit::TestCaller<DurationFormatTest>(
		"DurationFormatTest::TestDuration", &DurationFormatTest::TestDuration));
	suite.addTest(new CppUnit::TestCaller<DurationFormatTest>(
		"DurationFormatTest::TestTimeUnit", &DurationFormatTest::TestTimeUnit));

	parent.addTest("DurationFormatTest", &suite);
}
Exemplo n.º 7
0
/*static*/ void
UnicodeCharTest::AddTests(BTestSuite& parent)
{
    CppUnit::TestSuite& suite = *new CppUnit::TestSuite("UnicodeCharTest");

    suite.addTest(new CppUnit::TestCaller<UnicodeCharTest>(
                      "UnicodeCharTest::TestAscii", &UnicodeCharTest::TestAscii));
    suite.addTest(new CppUnit::TestCaller<UnicodeCharTest>(
                      "UnicodeCharTest::TestISO8859", &UnicodeCharTest::TestISO8859));
    suite.addTest(new CppUnit::TestCaller<UnicodeCharTest>(
                      "UnicodeCharTest::TestUTF8", &UnicodeCharTest::TestUTF8));

    parent.addTest("UnicodeCharTest", &suite);
}
/* static */ void
SimpleTransformTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite* const suite = new CppUnit::TestSuite(
		"SimpleTransformTest");

	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformPoint",
		&SimpleTransformTest::TransformPoint));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformIntPoint",
		&SimpleTransformTest::TransformIntPoint));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformRect",
		&SimpleTransformTest::TransformRect));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformIntRect",
		&SimpleTransformTest::TransformIntRect));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformRegion",
		&SimpleTransformTest::TransformRegion));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformGradientLinear",
		&SimpleTransformTest::TransformGradientLinear));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformGradientRadial",
		&SimpleTransformTest::TransformGradientRadial));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformGradientRadialFocus",
		&SimpleTransformTest::TransformGradientRadialFocus));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformGradientDiamond",
		&SimpleTransformTest::TransformGradientDiamond));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformGradientConic",
		&SimpleTransformTest::TransformGradientConic));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformPointArray",
		&SimpleTransformTest::TransformPointArray));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformRectArray",
		&SimpleTransformTest::TransformRectArray));
	suite->addTest(new CppUnit::TestCaller<SimpleTransformTest>(
		"SimpleTransformTest::TransformRegionArray",
		&SimpleTransformTest::TransformRegionArray));

	parent.addTest("SimpleTransformTest", suite);
}
Exemplo n.º 9
0
/* static */ void
CookieTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite("CookieTest");

	suite.addTest(new CppUnit::TestCaller<CookieTest>("CookieTest::SimpleTest",
		&CookieTest::SimpleTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::StandardTest", &CookieTest::StandardTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>("CookieTest::ExpireTest",
		&CookieTest::ExpireTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>("CookieTest::PathTest",
		&CookieTest::PathTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>("CookieTest::MaxSizeTest",
		&CookieTest::MaxSizeTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::MaxNumberTest", &CookieTest::MaxNumberTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>("CookieTest::UpdateTest",
		&CookieTest::UpdateTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::HttpOnlyTest", &CookieTest::HttpOnlyTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::EncodingTest", &CookieTest::EncodingTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>("CookieTest::DomainTest",
		&CookieTest::DomainTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::PersistantTest", &CookieTest::PersistantTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::OverwriteTest", &CookieTest::OverwriteTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::OrderTest", &CookieTest::OrderTest));

	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::ExpireParsingTest", &CookieTest::ExpireParsingTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::PathMatchingTest", &CookieTest::PathMatchingTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::DomainMatchingTest", &CookieTest::DomainMatchingTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::MaxAgeParsingTest", &CookieTest::MaxAgeParsingTest));
	suite.addTest(new CppUnit::TestCaller<CookieTest>(
		"CookieTest::ExplodeTest", &CookieTest::ExplodeTest));

	parent.addTest("CookieTest", &suite);
}
Exemplo n.º 10
0
/*static*/ void
JsonToMessageTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite(
		"JsonToMessageTest");

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestArrayA",
		&JsonToMessageTest::TestArrayA));

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestArrayB",
		&JsonToMessageTest::TestArrayB));

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestObjectA",
		&JsonToMessageTest::TestObjectA));

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestObjectB",
		&JsonToMessageTest::TestObjectB));

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestObjectC",
		&JsonToMessageTest::TestObjectC));

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestUnterminatedObject",
		&JsonToMessageTest::TestUnterminatedObject));

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestUnterminatedArray",
		&JsonToMessageTest::TestUnterminatedArray));

	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
		"JsonToMessageTest::TestHaikuDepotFetchBatch",
		&JsonToMessageTest::TestHaikuDepotFetchBatch));

//	suite.addTest(new CppUnit::TestCaller<JsonToMessageTest>(
//		"JsonToMessageTest::TestObjectAForPerformance",
//		&JsonToMessageTest::TestObjectAForPerformance));

	parent.addTest("JsonToMessageTest", &suite);
}
Exemplo n.º 11
0
/* static */ void
DataTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite("DataTest");

	suite.addTest(new CppUnit::TestCaller<DataTest>(
		"DataTest::SimpleTest", &DataTest::SimpleTest));
	suite.addTest(new CppUnit::TestCaller<DataTest>(
		"DataTest::EmptyTest", &DataTest::EmptyTest));
	suite.addTest(new CppUnit::TestCaller<DataTest>(
		"DataTest::InvalidTest", &DataTest::InvalidTest));
	suite.addTest(new CppUnit::TestCaller<DataTest>(
		"DataTest::CharsetTest", &DataTest::CharsetTest));
	suite.addTest(new CppUnit::TestCaller<DataTest>(
		"DataTest::Base64Test", &DataTest::Base64Test));
	suite.addTest(new CppUnit::TestCaller<DataTest>(
		"DataTest::UrlDecodeTest", &DataTest::UrlDecodeTest));

	parent.addTest("DataTest", &suite);
}
/*static*/ void
DriverSettingsMessageAdapterTest::AddTests(BTestSuite& parent)
{
	CppUnit::TestSuite& suite = *new CppUnit::TestSuite(
		"DriverSettingsMessageAdapterTest");

	suite.addTest(new CppUnit::TestCaller<DriverSettingsMessageAdapterTest>(
		"DriverSettingsMessageAdapterTest::TestPrimitivesToMessage",
		&DriverSettingsMessageAdapterTest::TestPrimitivesToMessage));
	suite.addTest(new CppUnit::TestCaller<DriverSettingsMessageAdapterTest>(
		"DriverSettingsMessageAdapterTest::TestMessage",
		&DriverSettingsMessageAdapterTest::TestMessage));
	suite.addTest(new CppUnit::TestCaller<DriverSettingsMessageAdapterTest>(
		"DriverSettingsMessageAdapterTest::TestParent",
		&DriverSettingsMessageAdapterTest::TestParent));
	suite.addTest(new CppUnit::TestCaller<DriverSettingsMessageAdapterTest>(
		"DriverSettingsMessageAdapterTest::TestConverter",
		&DriverSettingsMessageAdapterTest::TestConverter));

	parent.addTest("DriverSettingsMessageAdapterTest", &suite);
}
Exemplo n.º 13
0
BTestSuite* getTestSuite2() {
	BTestSuite *suite = new BTestSuite("App");

	// ##### Add test suites here #####
	suite->addTest("BApplication", ApplicationTestSuite());
	suite->addTest("BClipboard", ClipboardTestSuite());
//	suite->addTest("BCursor", CursorTestSuite());
	suite->addTest("BHandler", HandlerTestSuite());
	suite->addTest("BLooper", LooperTestSuite());
//	suite->addTest("BMessage", MessageTestSuite());
	suite->addTest("BMessageQueue", MessageQueueTestSuite());
	suite->addTest("BMessageRunner", MessageRunnerTestSuite());
	suite->addTest("BMessenger", MessengerTestSuite());
	suite->addTest("BPropertyInfo", PropertyInfoTestSuite());
	suite->addTest("BRoster", RosterTestSuite());
	suite->addTest("RegistrarThreadManager", RegistrarThreadManagerTest::Suite());
	
	return suite;
}