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

Side by Side Diff: third_party/icu38/source/test/intltest/regextst.h

Issue 40038: Apply a security patch for ICU regex. (http://bugs.icu-project.org/trac/ticke... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /******************************************************************** 1 /********************************************************************
2 * COPYRIGHT: 2 * COPYRIGHT:
3 * Copyright (c) 2002-2007, International Business Machines Corporation and 3 * Copyright (c) 2002-2008, International Business Machines Corporation and
4 * others. All Rights Reserved. 4 * others. All Rights Reserved.
5 ********************************************************************/ 5 ********************************************************************/
6 6
7 7
8 #ifndef REGEXTST_H 8 #ifndef REGEXTST_H
9 #define REGEXTST_H 9 #define REGEXTST_H
10 10
11 #include "unicode/utypes.h" 11 #include "unicode/utypes.h"
12 #if !UCONFIG_NO_REGULAR_EXPRESSIONS 12 #if !UCONFIG_NO_REGULAR_EXPRESSIONS
13 13
14 #include "intltest.h" 14 #include "intltest.h"
15 15
16 16
17 class RegexTest: public IntlTest { 17 class RegexTest: public IntlTest {
18 public: 18 public:
19 19
20 RegexTest(); 20 RegexTest();
21 virtual ~RegexTest(); 21 virtual ~RegexTest();
22 22
23 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, ch ar* par = NULL ); 23 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, ch ar* par = NULL );
24 24
25 // The following are test functions that are visible from the intltest test framework. 25 // The following are test functions that are visible from the intltest test framework.
26 virtual void API_Match(); 26 virtual void API_Match();
27 virtual void API_Pattern(); 27 virtual void API_Pattern();
28 virtual void API_Replace(); 28 virtual void API_Replace();
29 virtual void Basic(); 29 virtual void Basic();
30 virtual void Extended(); 30 virtual void Extended();
31 virtual void Errors(); 31 virtual void Errors();
32 virtual void PerlTests(); 32 virtual void PerlTests();
33 virtual void Bug6149();
33 34
34 // The following functions are internal to the regexp tests. 35 // The following functions are internal to the regexp tests.
35 virtual UBool doRegexLMTest(const char *pat, const char *text, UBool looking , UBool match, int32_t line); 36 virtual UBool doRegexLMTest(const char *pat, const char *text, UBool looking , UBool match, int32_t line);
36 virtual void regex_find(const UnicodeString &pat, const UnicodeString &flags , 37 virtual void regex_find(const UnicodeString &pat, const UnicodeString &flags ,
37 const UnicodeString &input, int32_t line); 38 const UnicodeString &input, int32_t line);
38 virtual void regex_err(const char *pat, int32_t errline, int32_t errcol, 39 virtual void regex_err(const char *pat, int32_t errline, int32_t errcol,
39 UErrorCode expectedStatus, int32_t line); 40 UErrorCode expectedStatus, int32_t line);
40 virtual UChar *ReadAndConvertFile(const char *fileName, int32_t &len, UError Code &status); 41 virtual UChar *ReadAndConvertFile(const char *fileName, int32_t &len, UError Code &status);
41 virtual const char *getPath(char buffer[2048], const char *filename); 42 virtual const char *getPath(char buffer[2048], const char *filename);
42 43
43 }; 44 };
44 45
45 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS 46 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS
46 #endif 47 #endif
OLDNEW
« no previous file with comments | « third_party/icu38/source/i18n/rematch.cpp ('k') | third_party/icu38/source/test/intltest/regextst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698