Change strlen to v8::internal::StrLength in liveedit tests (to fix compile error...
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 20 Apr 2010 10:41:38 +0000 (10:41 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 20 Apr 2010 10:41:38 +0000 (10:41 +0000)
Review URL: http://codereview.chromium.org/1610038

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4447 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-liveedit.cc

index 32df906..bf1a066 100644 (file)
@@ -43,10 +43,10 @@ class StringCompareInput : public Compare::Input {
   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 @@ void CompareStringsOneWay(const char* s1, const char* s2,
 
   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;