Index: third_party/re2/re2/testing/possible_match_test.cc |
diff --git a/third_party/re2/re2/testing/possible_match_test.cc b/third_party/re2/re2/testing/possible_match_test.cc |
index 46871651fcdff2bc17670e6b5df8c554bd1fe936..7c2400eb5b4320670859db9a2624c761e36c357c 100644 |
--- a/third_party/re2/re2/testing/possible_match_test.cc |
+++ b/third_party/re2/re2/testing/possible_match_test.cc |
@@ -7,7 +7,6 @@ |
#include "re2/prog.h" |
#include "re2/re2.h" |
#include "re2/regexp.h" |
-#include "re2/testing/exhaustive_tester.h" |
#include "re2/testing/regexp_generator.h" |
#include "re2/testing/string_generator.h" |
@@ -137,26 +136,26 @@ |
// are no valid UTF-8 strings beginning with byte 0xFF. |
EXPECT_FALSE(RE2("[\\s\\S]+", RE2::Latin1). |
PossibleMatchRange(&min, &max, 10)) |
- << "min=" << CEscape(min) << ", max=" << CEscape(max); |
+ << "min=" << CEscape(min) << ", max=" << CEscape(max); |
EXPECT_FALSE(RE2("[\\0-\xFF]+", RE2::Latin1). |
PossibleMatchRange(&min, &max, 10)) |
- << "min=" << CEscape(min) << ", max=" << CEscape(max); |
+ << "min=" << CEscape(min) << ", max=" << CEscape(max); |
EXPECT_FALSE(RE2(".+hello", RE2::Latin1). |
PossibleMatchRange(&min, &max, 10)) |
- << "min=" << CEscape(min) << ", max=" << CEscape(max); |
+ << "min=" << CEscape(min) << ", max=" << CEscape(max); |
EXPECT_FALSE(RE2(".*hello", RE2::Latin1). |
PossibleMatchRange(&min, &max, 10)) |
- << "min=" << CEscape(min) << ", max=" << CEscape(max); |
+ << "min=" << CEscape(min) << ", max=" << CEscape(max); |
EXPECT_FALSE(RE2(".*", RE2::Latin1). |
PossibleMatchRange(&min, &max, 10)) |
- << "min=" << CEscape(min) << ", max=" << CEscape(max); |
+ << "min=" << CEscape(min) << ", max=" << CEscape(max); |
EXPECT_FALSE(RE2("\\C*"). |
PossibleMatchRange(&min, &max, 10)) |
- << "min=" << CEscape(min) << ", max=" << CEscape(max); |
+ << "min=" << CEscape(min) << ", max=" << CEscape(max); |
// Fails because it's a malformed regexp. |
EXPECT_FALSE(RE2("*hello").PossibleMatchRange(&min, &max, 10)) |
- << "min=" << CEscape(min) << ", max=" << CEscape(max); |
+ << "min=" << CEscape(min) << ", max=" << CEscape(max); |
} |
// Exhaustive test: generate all regexps within parameters, |
@@ -187,7 +186,7 @@ |
int regexps_; // Number of HandleRegexp calls |
int tests_; // Number of regexp tests. |
- DISALLOW_COPY_AND_ASSIGN(PossibleMatchTester); |
+ DISALLOW_EVIL_CONSTRUCTORS(PossibleMatchTester); |
}; |
// Processes a single generated regexp. |
@@ -225,7 +224,7 @@ |
int natom = 3; |
int noperator = 3; |
int stringlen = 5; |
- if (RE2_DEBUG_MODE) { |
+ if (DEBUG_MODE) { |
natom = 2; |
noperator = 3; |
stringlen = 3; |