Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index f8f1586e3993ee64790465531a5150037d0d2851..68ac3b594f7fd98ccc8a729c00caee276a6d2688 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -29,6 +29,8 @@ |
#include <ctype.h> |
+#include <memory> |
+ |
#include "src/v8.h" |
#include "include/v8-profiler.h" |
@@ -1830,7 +1832,7 @@ TEST(GetHeapValueForDeletedObject) { |
static int StringCmp(const char* ref, i::String* act) { |
- v8::base::SmartArrayPointer<char> s_act = act->ToCString(); |
+ std::unique_ptr<char[]> s_act = act->ToCString(); |
int result = strcmp(ref, s_act.get()); |
if (result != 0) |
fprintf(stderr, "Expected: \"%s\", Actual: \"%s\"\n", ref, s_act.get()); |