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

Unified Diff: test/cctest/test-liveedit.cc

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-libplatform-worker-thread.cc ('k') | test/cctest/test-macro-assembler-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-liveedit.cc
diff --git a/test/cctest/test-liveedit.cc b/test/cctest/test-liveedit.cc
index bf8d1981fae5b4b88a366013e5ed7249e002fc01..f5c22743bde0499be00325b8de83a624bc5ba276 100644
--- a/test/cctest/test-liveedit.cc
+++ b/test/cctest/test-liveedit.cc
@@ -117,12 +117,12 @@ void CompareStringsOneWay(const char* s1, const char* s2,
int similar_part_length = diff_pos1 - pos1;
int diff_pos2 = pos2 + similar_part_length;
- ASSERT_EQ(diff_pos2, chunk->pos2);
+ DCHECK_EQ(diff_pos2, chunk->pos2);
for (int j = 0; j < similar_part_length; j++) {
- ASSERT(pos1 + j < len1);
- ASSERT(pos2 + j < len2);
- ASSERT_EQ(s1[pos1 + j], s2[pos2 + j]);
+ DCHECK(pos1 + j < len1);
+ DCHECK(pos2 + j < len2);
+ DCHECK_EQ(s1[pos1 + j], s2[pos2 + j]);
}
diff_parameter += chunk->len1 + chunk->len2;
pos1 = diff_pos1 + chunk->len1;
@@ -131,17 +131,17 @@ void CompareStringsOneWay(const char* s1, const char* s2,
{
// After last chunk.
int similar_part_length = len1 - pos1;
- ASSERT_EQ(similar_part_length, len2 - pos2);
+ DCHECK_EQ(similar_part_length, len2 - pos2);
USE(len2);
for (int j = 0; j < similar_part_length; j++) {
- ASSERT(pos1 + j < len1);
- ASSERT(pos2 + j < len2);
- ASSERT_EQ(s1[pos1 + j], s2[pos2 + j]);
+ DCHECK(pos1 + j < len1);
+ DCHECK(pos2 + j < len2);
+ DCHECK_EQ(s1[pos1 + j], s2[pos2 + j]);
}
}
if (expected_diff_parameter != -1) {
- ASSERT_EQ(expected_diff_parameter, diff_parameter);
+ DCHECK_EQ(expected_diff_parameter, diff_parameter);
}
}
« no previous file with comments | « test/cctest/test-libplatform-worker-thread.cc ('k') | test/cctest/test-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698