From b0ec1a797de21e86309d9528856dfbc499d28e9e Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sun, 15 Dec 2002 13:10:07 +0000 Subject: [PATCH] initial checkin for "StyledEdit Files" (STXT) Translator. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2252 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../stxttranslator/STXTTranslatorTest.cpp | 62 +++++++++++++++++++ .../stxttranslator/STXTTranslatorTest.h | 31 ++++++++++ 2 files changed, 93 insertions(+) create mode 100644 src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.cpp create mode 100644 src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.h diff --git a/src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.cpp b/src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.cpp new file mode 100644 index 0000000000..251134f26e --- /dev/null +++ b/src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.cpp @@ -0,0 +1,62 @@ +// STXTTranslatorTest.cpp +#include "STXTTranslatorTest.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//#include "../../../../add-ons/translators/bmptranslator/STXTTranslator.h" + +// Suite +CppUnit::Test * +STXTTranslatorTest::Suite() +{ + CppUnit::TestSuite *suite = new CppUnit::TestSuite(); + typedef CppUnit::TestCaller TC; + + suite->addTest( + new TC("STXTTranslator DummyTest", + &STXTTranslatorTest::DummyTest)); +#if !TEST_R5 + +#endif + + return suite; +} + +// setUp +void +STXTTranslatorTest::setUp() +{ + BTestCase::setUp(); +} + +// tearDown +void +STXTTranslatorTest::tearDown() +{ + BTestCase::tearDown(); +} + +#if !TEST_R5 + +#endif // #if !TEST_R5 + +// DummyTest +void +STXTTranslatorTest::DummyTest() +{ + // 0. Tautology + NextSubTest(); + printf("Hello from mars."); + CPPUNIT_ASSERT( true == true ); +} diff --git a/src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.h b/src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.h new file mode 100644 index 0000000000..4acf77cdd4 --- /dev/null +++ b/src/tests/add-ons/translators/stxttranslator/STXTTranslatorTest.h @@ -0,0 +1,31 @@ +// STXTTranslatorTest.h + +#ifndef STXT_TRANSLATOR_TEST_H +#define STXT_TRANSLATOR_TEST_H + +#include +#include + +class CppUnit::Test; + +class STXTTranslatorTest : public BTestCase { +public: + static CppUnit::Test* Suite(); + + // This function called before *each* test added in Suite() + void setUp(); + + // This function called after *each* test added in Suite() + void tearDown(); + + //------------------------------------------------------------ + // Test functions + //------------------------------------------------------------ +#if !TEST_R5 + +#endif + + void DummyTest(); +}; + +#endif // STXT_TRANSLATOR_TEST_H