projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git]
/
src
/
v8
/
test
/
cctest
/
test-liveedit.cc
diff --git
a/src/v8/test/cctest/test-liveedit.cc
b/src/v8/test/cctest/test-liveedit.cc
index
bf8d198
..
f5c2274
100644
(file)
--- a/
src/v8/test/cctest/test-liveedit.cc
+++ b/
src/v8/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;
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++) {
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;
}
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;
{
// 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++) {
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) {
}
}
if (expected_diff_parameter != -1) {
-
ASSERT
_EQ(expected_diff_parameter, diff_parameter);
+
DCHECK
_EQ(expected_diff_parameter, diff_parameter);
}
}
}
}