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

Unified Diff: source/test/intltest/nmfmtrt.h

Issue 2435373002: Delete source/test (Closed)
Patch Set: Created 4 years, 2 months 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 | « source/test/intltest/nmfmapts.cpp ('k') | source/test/intltest/nmfmtrt.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/nmfmtrt.h
diff --git a/source/test/intltest/nmfmtrt.h b/source/test/intltest/nmfmtrt.h
deleted file mode 100644
index 1352d177b767c1c881836e2b738d8a2f4035953e..0000000000000000000000000000000000000000
--- a/source/test/intltest/nmfmtrt.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2015, International Business Machines Corporation and
- * others. All Rights Reserved.
- ********************************************************************/
-
-#ifndef _NUMBERFORMATROUNDTRIPTEST_
-#define _NUMBERFORMATROUNDTRIPTEST_
-
-#include "unicode/utypes.h"
-
-#if !UCONFIG_NO_FORMATTING
-
-#include "unicode/numfmt.h"
-#include "unicode/fmtable.h"
-#include "intltest.h"
-
-/**
- * Performs round-trip tests for NumberFormat
- **/
-class NumberFormatRoundTripTest : public IntlTest {
-
- // IntlTest override
- void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
-public:
-
- static UBool verbose;
- static UBool STRING_COMPARE;
- static UBool EXACT_NUMERIC_COMPARE;
- static UBool DEBUG_VAR;
- static double MAX_ERROR;
- static double max_numeric_error;
- static double min_numeric_error;
-
-
- void start(void);
-
- void test(NumberFormat *fmt);
- void test(NumberFormat *fmt, double value);
- void test(NumberFormat *fmt, int32_t value);
- void test(NumberFormat *fmt, const Formattable& value);
-
- static double randomDouble(double range);
- static double proportionalError(const Formattable& a, const Formattable& b);
- static UnicodeString& typeOf(const Formattable& n, UnicodeString& result);
- static UnicodeString& escape(UnicodeString& s);
-
- static inline UBool
- isDouble(const Formattable& n)
- { return (n.getType() == Formattable::kDouble); }
-
- static inline UBool
- isLong(const Formattable& n)
- { return (n.getType() == Formattable::kLong); }
-
- /*
- * Return a random uint32_t
- **/
- static uint32_t randLong();
-
- /**
- * Return a random double 0 <= x < 1.0
- **/
- static double randFraction()
- {
- return (double)randLong() / (double)0xFFFFFFFF;
- }
-
-protected:
- UBool failure(UErrorCode status, const char* msg, UBool possibleDataError=FALSE);
-
-};
-
-#endif /* #if !UCONFIG_NO_FORMATTING */
-
-#endif // _NUMBERFORMATROUNDTRIPTEST_
-//eof
« no previous file with comments | « source/test/intltest/nmfmapts.cpp ('k') | source/test/intltest/nmfmtrt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698