1 /* 2 ********************************************************************** 3 * Copyright (C) 2005-2012, International Business Machines 4 * Corporation and others. All Rights Reserved. 5 ********************************************************************** 6 */ 7 8 #ifndef __SSEARCH_H 9 #define __SSEARCH_H 10 11 #include "unicode/utypes.h" 12 #include "unicode/unistr.h" 13 #include "unicode/ucol.h" 14 15 #include "intltest.h" 16 17 #if !UCONFIG_NO_COLLATION 18 19 // 20 // Test of the function usearch_search() 21 // 22 // See srchtest.h for the tests for the rest of the string search functions. 23 // 24 class SSearchTest: public IntlTest { 25 public: 26 27 SSearchTest(); 28 virtual ~SSearchTest(); 29 30 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* params = NULL ); 31 #if !UCONFIG_NO_BREAK_ITERATION 32 33 virtual void searchTest(); 34 virtual void offsetTest(); 35 virtual void monkeyTest(char *params); 36 virtual void sharpSTest(); 37 virtual void goodSuffixTest(); 38 virtual void searchTime(); 39 40 private: 41 virtual const char *getPath(char buffer[2048], const char *filename); 42 virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern, 43 const char *name, const char *strength, uint32_t seed); 44 #endif 45 }; 46 47 #endif 48 49 #endif 50