diff options
| author | 2017-04-03 17:56:59 +0000 | |
|---|---|---|
| committer | 2017-04-03 17:56:59 +0000 | |
| commit | 42fc455ab8bf2b762677e17e724dfcdce20b412c (patch) | |
| tree | 228f2dcaa3b5ff09d82bf4ee109ad60d2c97956e /test/906-iterate-heap/iterate_heap.cc | |
| parent | 2f113f6355afaffb85160d464b20638cd5de2179 (diff) | |
| parent | 1927f66beb916b028ef9d15d72dc3667c41e4a66 (diff) | |
Merge "ART: TI Agent test library refactor"
am: 1927f66beb
Change-Id: Ie14195b4dcd9063af20acb21e0877a2222c8a277
Diffstat (limited to 'test/906-iterate-heap/iterate_heap.cc')
| -rw-r--r-- | test/906-iterate-heap/iterate_heap.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/906-iterate-heap/iterate_heap.cc b/test/906-iterate-heap/iterate_heap.cc index 74cb1e9c1f..bb30074958 100644 --- a/test/906-iterate-heap/iterate_heap.cc +++ b/test/906-iterate-heap/iterate_heap.cc @@ -23,16 +23,18 @@ #include <stdio.h> #include <vector> +#include "android-base/logging.h" #include "android-base/stringprintf.h" -#include "base/logging.h" + #include "jni.h" #include "jvmti.h" -#include "ScopedPrimitiveArray.h" -#include "utf.h" +#include "scoped_primitive_array.h" // Test infrastructure #include "jvmti_helper.h" #include "test_env.h" +#include "ti_macros.h" +#include "ti_utf.h" namespace art { namespace Test906IterateHeap { @@ -197,10 +199,10 @@ extern "C" JNIEXPORT jstring JNICALL Java_Main_iterateThroughHeapString( void* user_data) { FindStringCallbacks* p = reinterpret_cast<FindStringCallbacks*>(user_data); if (*tag_ptr == p->tag_to_find) { - size_t utf_byte_count = CountUtf8Bytes(value, value_length); + size_t utf_byte_count = ti::CountUtf8Bytes(value, value_length); std::unique_ptr<char[]> mod_utf(new char[utf_byte_count + 1]); memset(mod_utf.get(), 0, utf_byte_count + 1); - ConvertUtf16ToModifiedUtf8(mod_utf.get(), utf_byte_count, value, value_length); + ti::ConvertUtf16ToModifiedUtf8(mod_utf.get(), utf_byte_count, value, value_length); if (!p->data.empty()) { p->data += "\n"; } |