]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/dadrfmt.h
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / test / intltest / dadrfmt.h
CommitLineData
46f4442e
A
1/********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 2007, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7/**
8 * DataDrivenFormatTest is a test class that uses data stored in resource
9 * bundles to perform testing. For more details on data structure, see
10 * source/test/testdata/calendar.txt
11 */
12
13#ifndef _INTLTESTDATADRIVENFORMAT
14#define _INTLTESTDATADRIVENFORMAT
15
16#include "unicode/utypes.h"
17
18#if !UCONFIG_NO_FORMATTING
19
20#include "tsdate.h"
21#include "uvector.h"
22#include "unicode/format.h"
23//#include "fldset.h"
24
25class TestDataModule;
26class TestData;
27class DataMap;
28//class DateTimeStyle;
29
30class DataDrivenFormatTest : public IntlTest {
31 void runIndexedTest(int32_t index, UBool exec, const char* &name,
32 char* par = NULL);
33public:
34 DataDrivenFormatTest();
35 virtual ~DataDrivenFormatTest();
36protected:
37
38 void DataDrivenTest(char *par);
39 void processTest(TestData *testData);
40private:
41 void testConvertDate(TestData *testData, const DataMap *settings, UBool fmt);
42// void testOps(TestData *testData, const DataMap *settings);
43// void testConvert(int32_t n, const FormatFieldsSet &fromSet,
44// Format *fromCal, const FormatFieldsSet &toSet, Format *toCal,
45// UBool fwd);
46private:
47 TestDataModule *driver;
48};
49
50#endif /* #if !UCONFIG_NO_COLLATION */
51
52#endif