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

Unified Diff: base/tools_sanity_unittest.cc

Issue 55983002: Make gtest always use simple internal regex engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 | « base/process/memory_unittest.cc ('k') | testing/gtest.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tools_sanity_unittest.cc
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc
index ff789380122c22808b0f4c7296a7d2108c30d476..4804a35a3b9ef95cec9db0327982fd394b6da30a 100644
--- a/base/tools_sanity_unittest.cc
+++ b/base/tools_sanity_unittest.cc
@@ -65,14 +65,15 @@ void WriteValueOutOfArrayBoundsRight(char *ptr, size_t size) {
void MakeSomeErrors(char *ptr, size_t size) {
ReadUninitializedValue(ptr);
+
HARMFUL_ACCESS(ReadValueOutOfArrayBoundsLeft(ptr),
- "heap-buffer-overflow.*2 bytes to the left");
+ "2 bytes to the left");
HARMFUL_ACCESS(ReadValueOutOfArrayBoundsRight(ptr, size),
- "heap-buffer-overflow.*1 bytes to the right");
+ "1 bytes to the right");
HARMFUL_ACCESS(WriteValueOutOfArrayBoundsLeft(ptr),
- "heap-buffer-overflow.*1 bytes to the left");
+ "1 bytes to the left");
HARMFUL_ACCESS(WriteValueOutOfArrayBoundsRight(ptr, size),
- "heap-buffer-overflow.*0 bytes to the right");
+ "0 bytes to the right");
}
} // namespace
« no previous file with comments | « base/process/memory_unittest.cc ('k') | testing/gtest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698