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

Unified Diff: icu46/source/test/intltest/utxttest.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/uts46test.cpp ('k') | icu46/source/test/intltest/utxttest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/test/intltest/utxttest.h
===================================================================
--- icu46/source/test/intltest/utxttest.h (revision 0)
+++ icu46/source/test/intltest/utxttest.h (revision 0)
@@ -0,0 +1,63 @@
+/********************************************************************
+ * COPYRIGHT:
+ * Copyright (c) 2005-2010, International Business Machines Corporation and
+ * others. All Rights Reserved.
+ ********************************************************************/
+/************************************************************************
+* Tests for the UText and UTextIterator text abstraction classses
+*
+************************************************************************/
+
+
+#ifndef UTXTTEST_H
+#define UTXTTEST_H
+
+#include "unicode/utypes.h"
+#include "unicode/unistr.h"
+#include "unicode/utext.h"
+
+#include "intltest.h"
+
+/**
+ * @test
+ * @summary Testing the Replaceable class
+ */
+class UTextTest : public IntlTest {
+public:
+ UTextTest();
+ virtual ~UTextTest();
+
+ void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
+ void TextTest();
+ void ErrorTest();
+ void FreezeTest();
+ void Ticket5560();
+ void Ticket6847();
+ void ComparisonTest();
+
+private:
+ struct m { // Map between native indices & code points.
+ int nativeIdx;
+ UChar32 cp;
+ };
+
+ void TestString(const UnicodeString &s);
+ void TestAccess(const UnicodeString &us, UText *ut, int cpCount, m *cpMap);
+ void TestAccessNoClone(const UnicodeString &us, UText *ut, int cpCount, m *cpMap);
+ void TestCMR (const UnicodeString &us, UText *ut, int cpCount, m *nativeMap, m *utf16Map);
+ void TestCopyMove(const UnicodeString &us, UText *ut, UBool move,
+ int32_t nativeStart, int32_t nativeLimit, int32_t nativeDest,
+ int32_t u16Start, int32_t u16Limit, int32_t u16Dest);
+ void TestReplace(const UnicodeString &us, // reference UnicodeString in which to do the replace
+ UText *ut, // UnicodeText object under test.
+ int32_t nativeStart, // Range to be replaced, in UText native units.
+ int32_t nativeLimit,
+ int32_t u16Start, // Range to be replaced, in UTF-16 units
+ int32_t u16Limit, // for use in the reference UnicodeString.
+ const UnicodeString &repStr); // The replacement string
+
+
+};
+
+
+#endif
Property changes on: icu46/source/test/intltest/utxttest.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/test/intltest/uts46test.cpp ('k') | icu46/source/test/intltest/utxttest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698