xref: /haiku/src/tests/add-ons/translators/TranslatorTestAddOn.h (revision 7749d0bb0c358a3279b1b9cc76d8376e900130a5)
1 // TranslatorTestAddOn.h
2 
3 #ifndef TRANSLATOR_TEST_ADD_ON_H
4 #define TRANSLATOR_TEST_ADD_ON_H
5 
6 #include <TestCase.h>
7 #include <TestSuite.h>
8 #include <TestSuiteAddon.h>
9 #include <DataIO.h>
10 #include <TranslationDefs.h>
11 
12 bool CompareStreams(BPositionIO &a, BPositionIO &b);
13 
14 void CheckTranslatorInfo(translator_info *pti,
15 	uint32 type, uint32 group, float quality, float capability,
16 	const char *name, const char *mime);
17 
18 void TranslatorLoadAddOnTest(const char *path, BTestCase *ptest,
19 	const translation_format *pExpectedIns, uint32 nExpectedIns,
20 	const translation_format *pExpectedOuts, uint32 nExpectedOuts,
21 	int32 expectedVer);
22 
23 #endif // #ifndef TRANSLATOR_TEST_ADD_ON_H
24