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

Unified Diff: icu46/source/test/intltest/srchtest.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/simplethread.cpp ('k') | icu46/source/test/intltest/srchtest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/test/intltest/srchtest.h
===================================================================
--- icu46/source/test/intltest/srchtest.h (revision 0)
+++ icu46/source/test/intltest/srchtest.h (revision 0)
@@ -0,0 +1,97 @@
+/****************************************************************************
+ * COPYRIGHT:
+ * Copyright (c) 2001-2008, International Business Machines Corporation and others
+ * All Rights Reserved.
+ ***************************************************************************/
+
+#ifndef _STRSRCH_H
+#define _STRSRCH_H
+
+#include "unicode/utypes.h"
+
+#if !UCONFIG_NO_COLLATION
+
+#include "unicode/tblcoll.h"
+#include "unicode/brkiter.h"
+#include "intltest.h"
+#include "unicode/usearch.h"
+
+struct SearchData;
+typedef struct SearchData SearchData;
+
+class StringSearchTest: public IntlTest
+{
+public:
+ StringSearchTest();
+ virtual ~StringSearchTest();
+
+ void runIndexedTest(int32_t index, UBool exec, const char* &name,
+ char* par = NULL);
+#if !UCONFIG_NO_BREAK_ITERATION
+private:
+ RuleBasedCollator *m_en_us_;
+ RuleBasedCollator *m_fr_fr_;
+ RuleBasedCollator *m_de_;
+ RuleBasedCollator *m_es_;
+ BreakIterator *m_en_wordbreaker_;
+ BreakIterator *m_en_characterbreaker_;
+
+ RuleBasedCollator * getCollator(const char *collator);
+ BreakIterator * getBreakIterator(const char *breaker);
+ char * toCharString(const UnicodeString &text);
+ Collator::ECollationStrength getECollationStrength(
+ const UCollationStrength &strength) const;
+ UBool assertEqualWithStringSearch( StringSearch *strsrch,
+ const SearchData *search);
+ UBool assertEqual(const SearchData *search);
+ UBool assertCanonicalEqual(const SearchData *search);
+ UBool assertEqualWithAttribute(const SearchData *search,
+ USearchAttributeValue canonical,
+ USearchAttributeValue overlap);
+ void TestOpenClose();
+ void TestInitialization();
+ void TestBasic();
+ void TestNormExact();
+ void TestStrength();
+#if !UCONFIG_NO_BREAK_ITERATION
+ void TestBreakIterator();
+#endif
+ void TestVariable();
+ void TestOverlap();
+ void TestCollator();
+ void TestPattern();
+ void TestText();
+ void TestCompositeBoundaries();
+ void TestGetSetOffset();
+ void TestGetSetAttribute();
+ void TestGetMatch();
+ void TestSetMatch();
+ void TestReset();
+ void TestSupplementary();
+ void TestContraction();
+ void TestIgnorable();
+ void TestCanonical();
+ void TestNormCanonical();
+ void TestStrengthCanonical();
+#if !UCONFIG_NO_BREAK_ITERATION
+ void TestBreakIteratorCanonical();
+#endif
+ void TestVariableCanonical();
+ void TestOverlapCanonical();
+ void TestCollatorCanonical();
+ void TestPatternCanonical();
+ void TestTextCanonical();
+ void TestCompositeBoundariesCanonical();
+ void TestGetSetOffsetCanonical();
+ void TestSupplementaryCanonical();
+ void TestContractionCanonical();
+ void TestUClassID();
+ void TestSubclass();
+ void TestCoverage();
+ void TestDiacriticMatch();
+#endif
+};
+
+#endif /* #if !UCONFIG_NO_COLLATION */
+
+#endif
Property changes on: icu46/source/test/intltest/srchtest.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/test/intltest/simplethread.cpp ('k') | icu46/source/test/intltest/srchtest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698