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

Unified Diff: icu46/source/test/intltest/ustrtest.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/usettest.cpp ('k') | icu46/source/test/intltest/ustrtest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/test/intltest/ustrtest.h
===================================================================
--- icu46/source/test/intltest/ustrtest.h (revision 0)
+++ icu46/source/test/intltest/ustrtest.h (revision 0)
@@ -0,0 +1,98 @@
+/********************************************************************
+ * COPYRIGHT:
+ * Copyright (c) 1997-2010, International Business Machines Corporation and
+ * others. All Rights Reserved.
+ ********************************************************************/
+
+#ifndef UNICODESTRINGTEST_H
+#define UNICODESTRINGTEST_H
+
+#include "unicode/unistr.h"
+#include "intltest.h"
+
+/**
+ * Perform API and functionality tests for class UnicodeString
+ **/
+class UnicodeStringTest: public IntlTest {
+public:
+ UnicodeStringTest() {}
+ virtual ~UnicodeStringTest();
+
+ void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
+
+ /**
+ * Test some basic methods (insert, remove, replace, ...)
+ **/
+ void TestBasicManipulation(void);
+ /**
+ * Test the methods for comparison
+ **/
+ void TestCompare(void);
+ /**
+ * Test the methods for extracting
+ **/
+ void TestExtract(void);
+ /**
+ * More extensively test methods for removing and replacing
+ **/
+ void TestRemoveReplace(void);
+ /**
+ * Test language specific case conversions
+ **/
+ void TestSearching(void);
+ /**
+ * Test methods for padding, trimmimg and truncating
+ **/
+ void TestSpacePadding(void);
+ /**
+ * Test methods startsWith and endsWith
+ **/
+ void TestPrefixAndSuffix(void);
+ /**
+ * Test method findAndReplace
+ **/
+ void TestFindAndReplace(void);
+ /**
+ * Test method reverse
+ **/
+ void TestReverse(void);
+ /**
+ * Test a few miscellaneous methods (isBogus, hashCode,...)
+ **/
+ void TestMiscellaneous(void);
+ /**
+ * Test the functionality of allocating UnicodeStrings on the stack
+ **/
+ void TestStackAllocation(void);
+ /**
+ * Test the unescape() function.
+ */
+ void TestUnescape(void);
+
+ void _testUnicodeStringHasMoreChar32Than(const UnicodeString &s, int32_t start, int32_t length, int32_t number);
+ void TestCountChar32(void);
+ void TestBogus();
+ void TestStringEnumeration();
+ void TestNameSpace(void);
+ void TestUTF32(void);
+ void TestUTF8(void);
+ void TestReadOnlyAlias(void);
+};
+
+class StringCaseTest: public IntlTest {
+public:
+ StringCaseTest() {}
+ virtual ~StringCaseTest();
+
+ void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=0);
+
+ void TestCaseConversion();
+
+ void TestCasingImpl(const UnicodeString &input,
+ const UnicodeString &output,
+ int32_t whichCase,
+ void *iter, const char *localeID, uint32_t options);
+ void TestCasing();
+};
+
+#endif
Property changes on: icu46/source/test/intltest/ustrtest.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/test/intltest/usettest.cpp ('k') | icu46/source/test/intltest/ustrtest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698