diff options
author | Andreas Gampe <agampe@google.com> | 2016-11-28 07:38:35 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2016-11-29 11:11:46 -0800 |
commit | 8a0128a5ca0784f6d2b4ca27907e8967a74bc4c5 (patch) | |
tree | 0dec75200282ae5e49785395e97bd4e6459f1c09 /compiler/driver/compiler_driver_test.cc | |
parent | 60438b46090d22bb9b978196f5aa53fab3b89759 (diff) |
ART: Add dex::StringIndex
Add abstraction for uint32_t string index.
Test: m test-art-host
Change-Id: I917c2881702fe3df112c713f06980f2278ced7ed
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
-rw-r--r-- | compiler/driver/compiler_driver_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index f40c71283b..12684c09c0 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -111,7 +111,7 @@ TEST_F(CompilerDriverTest, DISABLED_LARGE_CompileDexLibCore) { ObjPtr<mirror::DexCache> dex_cache = class_linker_->FindDexCache(soa.Self(), dex); EXPECT_EQ(dex.NumStringIds(), dex_cache->NumStrings()); for (size_t i = 0; i < dex_cache->NumStrings(); i++) { - const mirror::String* string = dex_cache->GetResolvedString(i); + const mirror::String* string = dex_cache->GetResolvedString(dex::StringIndex(i)); EXPECT_TRUE(string != nullptr) << "string_idx=" << i; } EXPECT_EQ(dex.NumTypeIds(), dex_cache->NumResolvedTypes()); |