Index: test/cctest/test-utils.cc |
diff --git a/test/cctest/test-utils.cc b/test/cctest/test-utils.cc |
index ffcaf8abc0005f2095e4b95a63e78a7ec3fb9c2a..1d65e686e4b59ec91f2a12f974fcf2bf175eff41 100644 |
--- a/test/cctest/test-utils.cc |
+++ b/test/cctest/test-utils.cc |
@@ -166,7 +166,7 @@ TEST(SNPrintF) { |
// Make sure that strings that are truncated because of too small |
// buffers are zero-terminated anyway. |
const char* s = "the quick lazy .... oh forget it!"; |
- int length = strlen(s); |
+ int length = StrLength(s); |
for (int i = 1; i < length * 2; i++) { |
static const char kMarker = static_cast<char>(42); |
Vector<char> buffer = Vector<char>::New(i + 1); |
@@ -177,9 +177,9 @@ TEST(SNPrintF) { |
CHECK_EQ(0, strncmp(buffer.start(), s, i - 1)); |
CHECK_EQ(kMarker, buffer[i]); |
if (i <= length) { |
- CHECK_EQ(i - 1, strlen(buffer.start())); |
+ CHECK_EQ(i - 1, StrLength(buffer.start())); |
} else { |
- CHECK_EQ(length, strlen(buffer.start())); |
+ CHECK_EQ(length, StrLength(buffer.start())); |
} |
buffer.Dispose(); |
} |