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

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

Issue 1610038: Change strlen to v8::internal::StrLength in liveedit tests (to fix compile er... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-liveedit.cc
===================================================================
--- test/cctest/test-liveedit.cc (revision 4444)
+++ test/cctest/test-liveedit.cc (working copy)
@@ -43,10 +43,10 @@
StringCompareInput(const char* s1, const char* s2) : s1_(s1), s2_(s2) {
}
int getLength1() {
- return strlen(s1_);
+ return StrLength(s1_);
}
int getLength2() {
- return strlen(s2_);
+ return StrLength(s2_);
}
bool equals(int index1, int index2) {
return s1_[index1] == s2_[index2];
@@ -100,8 +100,8 @@
Compare::CalculateDifference(&input, &writer);
- int len1 = strlen(s1);
- int len2 = strlen(s2);
+ int len1 = StrLength(s1);
+ int len2 = StrLength(s2);
int pos1 = 0;
int pos2 = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698