initial checkin for "StyledEdit Files" (STXT) Translator.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2252 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber 2002-12-15 13:10:07 +00:00
parent e166e3f558
commit b0ec1a797d
2 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,62 @@
// STXTTranslatorTest.cpp
#include "STXTTranslatorTest.h"
#include <cppunit/Test.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <image.h>
#include <Translator.h>
#include <TranslatorFormats.h>
#include <Message.h>
#include <View.h>
#include <Rect.h>
#include <File.h>
#include <DataIO.h>
//#include "../../../../add-ons/translators/bmptranslator/STXTTranslator.h"
// Suite
CppUnit::Test *
STXTTranslatorTest::Suite()
{
CppUnit::TestSuite *suite = new CppUnit::TestSuite();
typedef CppUnit::TestCaller<STXTTranslatorTest> 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 );
}

View File

@ -0,0 +1,31 @@
// STXTTranslatorTest.h
#ifndef STXT_TRANSLATOR_TEST_H
#define STXT_TRANSLATOR_TEST_H
#include <TestCase.h>
#include <TestShell.h>
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