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

Unified Diff: third_party/re2/re2/testing/exhaustive_tester.h

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated update instructions Created 5 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 | « third_party/re2/re2/testing/exhaustive3_test.cc ('k') | third_party/re2/re2/testing/exhaustive_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/re2/testing/exhaustive_tester.h
diff --git a/third_party/re2/re2/testing/exhaustive_tester.h b/third_party/re2/re2/testing/exhaustive_tester.h
index 38a139f58859ac72ac28224678cba17385f2b702..1facb9798acdac9e2a20e69c2e8013b0621a1750 100644
--- a/third_party/re2/re2/testing/exhaustive_tester.h
+++ b/third_party/re2/re2/testing/exhaustive_tester.h
@@ -13,6 +13,16 @@
namespace re2 {
+#if !defined(NDEBUG)
+// We are in a debug build.
+const bool RE2_DEBUG_MODE = true;
+#elif ADDRESS_SANITIZER || MEMORY_SANITIZER || THREAD_SANITIZER
+// Not a debug build, but still under sanitizers.
+const bool RE2_DEBUG_MODE = true;
+#else
+const bool RE2_DEBUG_MODE = false;
+#endif
+
// Exhaustive regular expression test: generate all regexps within parameters,
// then generate all strings of a given length over a given alphabet,
// then check that NFA, DFA, and PCRE agree about whether each regexp matches
@@ -63,7 +73,7 @@ class ExhaustiveTester : public RegexpGenerator {
bool randomstrings_; // Whether to use random strings
int32 stringseed_; // If so, the seed.
int stringcount_; // If so, how many to generate.
- DISALLOW_EVIL_CONSTRUCTORS(ExhaustiveTester);
+ DISALLOW_COPY_AND_ASSIGN(ExhaustiveTester);
};
// Runs an exhaustive test on the given parameters.
« no previous file with comments | « third_party/re2/re2/testing/exhaustive3_test.cc ('k') | third_party/re2/re2/testing/exhaustive_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698