summaryrefslogtreecommitdiffstats
path: root/test/116-nodex2oat
diff options
context:
space:
mode:
authorRichard Uhler <ruhler@google.com>2015-03-31 15:57:54 -0700
committerRichard Uhler <ruhler@google.com>2015-04-02 09:47:03 -0700
commit07b3c2351bb527ea91c084dc19434600af9ae66b (patch)
treeb286122b660ce16abae1e56c57b957b8c69c9531 /test/116-nodex2oat
parentdcff612c3a6e1427749771c4559f198fa480f709 (diff)
downloadart-07b3c2351bb527ea91c084dc19434600af9ae66b.tar.gz
art-07b3c2351bb527ea91c084dc19434600af9ae66b.tar.bz2
art-07b3c2351bb527ea91c084dc19434600af9ae66b.zip
Store OatDexFile instead of OatFile in DexFile.
This requires moving OatDexFile out of the OatFile class so that a forward class declaration can be used for OatDexFile. Bug: 19071355 Change-Id: Ibda85b78d0577e9e81073090616fc0f2fa526be3
Diffstat (limited to 'test/116-nodex2oat')
-rw-r--r--test/116-nodex2oat/nodex2oat.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/116-nodex2oat/nodex2oat.cc b/test/116-nodex2oat/nodex2oat.cc
index 564d58d251..131af312be 100644
--- a/test/116-nodex2oat/nodex2oat.cc
+++ b/test/116-nodex2oat/nodex2oat.cc
@@ -28,8 +28,7 @@ class NoDex2OatTest {
ScopedObjectAccess soa(Thread::Current());
mirror::Class* klass = soa.Decode<mirror::Class*>(cls);
const DexFile& dex_file = klass->GetDexFile();
- const OatFile::OatDexFile* oat_dex_file =
- Runtime::Current()->GetClassLinker()->FindOpenedOatDexFileForDexFile(dex_file);
+ const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile();
return oat_dex_file != nullptr;
}
};