From a5b09a67034e57a6e10231dd4bd92f4cb50b824c Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 17 Nov 2016 15:21:22 -0800 Subject: ART: Add dex::TypeIndex Add abstraction for uint16_t type index. Test: m test-art-host Change-Id: I47708741c7c579cbbe59ab723c1e31c5fe71f83a --- runtime/dex_file_verifier_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/dex_file_verifier_test.cc') diff --git a/runtime/dex_file_verifier_test.cc b/runtime/dex_file_verifier_test.cc index 3801c228c0..0e0929f21f 100644 --- a/runtime/dex_file_verifier_test.cc +++ b/runtime/dex_file_verifier_test.cc @@ -26,6 +26,7 @@ #include "base/macros.h" #include "common_runtime_test.h" #include "dex_file-inl.h" +#include "dex_file_types.h" #include "leb128.h" #include "scoped_thread_state_change-inl.h" #include "thread-inl.h" @@ -155,7 +156,7 @@ TEST_F(DexFileVerifierTest, MethodId) { "method_id_class_idx", [](DexFile* dex_file) { DexFile::MethodId* method_id = const_cast(&dex_file->GetMethodId(0)); - method_id->class_idx_ = 0xFF; + method_id->class_idx_ = dex::TypeIndex(0xFF); }, "could not find declaring class for direct method index 0"); -- cgit v1.2.3-59-g8ed1b