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

Unified Diff: source/test/intltest/dtfmtrtts.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/dtfmrgts.cpp ('k') | source/test/intltest/dtfmtrtts.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/dtfmtrtts.h
diff --git a/source/test/intltest/dtfmtrtts.h b/source/test/intltest/dtfmtrtts.h
deleted file mode 100644
index 1749d0e682650d90cac15f6a431d8247f9854bae..0000000000000000000000000000000000000000
--- a/source/test/intltest/dtfmtrtts.h
+++ /dev/null
@@ -1,96 +0,0 @@
-/********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2006, International Business Machines Corporation and
- * others. All Rights Reserved.
- ********************************************************************/
-
-#ifndef _DATEFORMATROUNDTRIPTEST_
-#define _DATEFORMATROUNDTRIPTEST_
-
-#include "unicode/utypes.h"
-
-#if !UCONFIG_NO_FORMATTING
-
-#include "unicode/unistr.h"
-#include "unicode/datefmt.h"
-#include "unicode/smpdtfmt.h"
-#include "unicode/calendar.h"
-#include "intltest.h"
-
-/**
- * Performs round-trip tests for DateFormat
- **/
-class DateFormatRoundTripTest : public IntlTest {
-
- // IntlTest override
- void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
-
-public:
- DateFormatRoundTripTest();
- virtual ~DateFormatRoundTripTest();
-
- void TestDateFormatRoundTrip(void);
- void TestCentury(void);
- void test(const Locale& loc);
- void test(DateFormat *fmt, const Locale &origLocale, UBool timeOnly = FALSE );
- int32_t getField(UDate d, int32_t f);
- UnicodeString& escape(const UnicodeString& src, UnicodeString& dst);
- UDate generateDate(void);
- UDate generateDate(UDate minDate);
-
-
-//============================================================
-// statics
-//============================================================
-
-/**
- * Return a random uint32_t
- **/
-static uint32_t randLong() {
- // The portable IntlTest::random() function has sufficient
- // resolution for a 16-bit value, but not for 32 bits.
- return ((uint32_t) (IntlTest::random() * (1<<16))) |
- (((uint32_t) (IntlTest::random() * (1<<16))) << 16);
-}
-
-/**
- * Return a random double 0 <= x <= 1.0
- **/
-static double randFraction()
-{
- return (double)randLong() / (double)0xFFFFFFFF;
-}
-
-/**
- * Return a random value from -range..+range (closed).
- **/
-static double randDouble(double range)
-{
- double a = randFraction();
- //while(TPlatformUtilities::isInfinite(a) || TPlatformUtilities::isNaN(a))
- // a = randFraction();
- return (2.0 * range * a) - range;
-}
-
-protected:
- UBool failure(UErrorCode status, const char* msg);
- UBool failure(UErrorCode status, const char* msg, const UnicodeString& str);
-
- const UnicodeString& fullFormat(UDate d);
-
-private:
-
- static int32_t SPARSENESS;
- static int32_t TRIALS;
- static int32_t DEPTH;
-
- UBool optionv; // TRUE if @v option is given on command line
- SimpleDateFormat *dateFormat;
- UnicodeString fgStr;
- Calendar *getFieldCal;
-};
-
-#endif /* #if !UCONFIG_NO_FORMATTING */
-
-#endif // _DATEFORMATROUNDTRIPTEST_
-//eof
« no previous file with comments | « source/test/intltest/dtfmrgts.cpp ('k') | source/test/intltest/dtfmtrtts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698