Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: icu46/source/test/intltest/dcfmtest.h

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu46/source/test/intltest/dcfmapts.cpp ('k') | icu46/source/test/intltest/dcfmtest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/test/intltest/dcfmtest.h
===================================================================
--- icu46/source/test/intltest/dcfmtest.h (revision 0)
+++ icu46/source/test/intltest/dcfmtest.h (revision 0)
@@ -0,0 +1,53 @@
+/********************************************************************
+ * COPYRIGHT:
+ * Copyright (c) 2010, International Business Machines Corporation and
+ * others. All Rights Reserved.
+ ********************************************************************/
+
+//
+// file: dcfmtest.h
+//
+// Data driven decimal formatter test.
+// Includes testing of both parsing and formatting.
+// Tests are in the text file dcfmtest.txt, in the source/test/testdata/ directory.
+//
+
+#ifndef DCFMTEST_H
+#define DCFMTEST_H
+
+#include "unicode/utypes.h"
+#if !UCONFIG_NO_REGULAR_EXPRESSIONS
+
+#include "intltest.h"
+
+
+class DecimalFormatTest: public IntlTest {
+public:
+
+ DecimalFormatTest();
+ virtual ~DecimalFormatTest();
+
+ virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL );
+
+ // The following are test functions that are visible from the intltest test framework.
+ virtual void DataDrivenTests();
+
+ // The following functions are internal to the decimal format tests.
+ virtual UChar *ReadAndConvertFile(const char *fileName, int32_t &len, UErrorCode &status);
+ virtual const char *getPath(char buffer[2048], const char *filename);
+ virtual void execParseTest(int32_t lineNum,
+ const UnicodeString &inputText,
+ const UnicodeString &expectedType,
+ const UnicodeString &expectedDecimal,
+ UErrorCode &status);
+
+ virtual void execFormatTest(int32_t lineNum,
+ const UnicodeString &pattern,
+ const UnicodeString &round,
+ const UnicodeString &input,
+ const UnicodeString &expected,
+ UErrorCode &status);
+};
+
+#endif // !UCONFIG_NO_REGULAR_EXPRESSIONS
+#endif
Property changes on: icu46/source/test/intltest/dcfmtest.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/test/intltest/dcfmapts.cpp ('k') | icu46/source/test/intltest/dcfmtest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698