summaryrefslogtreecommitdiff
path: root/runtime/proxy_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2020-05-14 16:39:14 +0100
committer Vladimir Marko <vmarko@google.com> 2020-05-15 14:10:47 +0000
commit0a6063a07edf210979de199aecead92647b8752c (patch)
tree03e427837b0c248700ac0ea7f42e91fa9a9cf53b /runtime/proxy_test.cc
parentecb984ddbd830e6eb3f339b9bd4c7c90eac2438b (diff)
Clean up Field::CreateFromArtField().
Remove code dealing with the DexCache. This was obsolete since switching to hash-based DexCache arrays. This makes the last remaining template parameter unused, so remove it and move the implementation to the .cc file. Test: m test-art-host-gtest Test: testrunner.py --host --optmizing Test: aost_taimen-userdebug boots. Change-Id: Ib2077028f45792e4357d9c57280ece70a22e47a2
Diffstat (limited to 'runtime/proxy_test.cc')
-rw-r--r--runtime/proxy_test.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/runtime/proxy_test.cc b/runtime/proxy_test.cc
index 76e036ac45..d8e170b32e 100644
--- a/runtime/proxy_test.cc
+++ b/runtime/proxy_test.cc
@@ -20,7 +20,7 @@
#include "art_field-inl.h"
#include "base/enums.h"
#include "common_runtime_test.h"
-#include "mirror/field-inl.h"
+#include "mirror/field.h"
#include "proxy_test.h"
#include "scoped_thread_state_change-inl.h"
#include "well_known_classes.h"
@@ -173,17 +173,13 @@ TEST_F(ProxyTest, CheckArtMirrorFieldsOfProxyStaticFields) {
ASSERT_EQ(Runtime::Current()->GetClassLinker()->GetImagePointerSize(), kRuntimePointerSize);
ASSERT_FALSE(Runtime::Current()->IsActiveTransaction());
Handle<mirror::Field> field00 =
- hs.NewHandle(mirror::Field::CreateFromArtField<kRuntimePointerSize>(
- soa.Self(), &static_fields0->At(0), true));
+ hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields0->At(0), true));
Handle<mirror::Field> field01 =
- hs.NewHandle(mirror::Field::CreateFromArtField<kRuntimePointerSize>(
- soa.Self(), &static_fields0->At(1), true));
+ hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields0->At(1), true));
Handle<mirror::Field> field10 =
- hs.NewHandle(mirror::Field::CreateFromArtField<kRuntimePointerSize>(
- soa.Self(), &static_fields1->At(0), true));
+ hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields1->At(0), true));
Handle<mirror::Field> field11 =
- hs.NewHandle(mirror::Field::CreateFromArtField<kRuntimePointerSize>(
- soa.Self(), &static_fields1->At(1), true));
+ hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields1->At(1), true));
EXPECT_EQ(field00->GetArtField(), &static_fields0->At(0));
EXPECT_EQ(field01->GetArtField(), &static_fields0->At(1));
EXPECT_EQ(field10->GetArtField(), &static_fields1->At(0));