diff options
| author | 2021-06-10 09:52:53 +0100 | |
|---|---|---|
| committer | 2021-12-20 12:07:43 +0000 | |
| commit | ba1b94e8ebf35947e1ce127d67ab164a76ec251c (patch) | |
| tree | 58f5d61d767315ef8dd2734f9be1c48532e8ce55 /runtime/proxy_test.cc | |
| parent | c8d57bec6249f3222e5f05f8f7e46baf06865ffe (diff) | |
Clean up Class::GetDirectInterface().
Fetch array interfaces from the `IfTable`. This removes the
only use of the `Thread* self` argument, so we can remove
that argument. We also make the function non-static to avoid
the explicit `klass` argument. Similarly clean up arguments
of `Class::FindClass()` and `Class::FindStaticClass()`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
(cherry picked from commit b10668cb6a34398eb720f9a6305ff9a51b3ebfd4)
Merged-In: Id639b675b4eb331a777cf318eb61bd19e05de4f0
Change-Id: I34d11499aea5a95864bf1cdcb4f210547a07f33c
Diffstat (limited to 'runtime/proxy_test.cc')
| -rw-r--r-- | runtime/proxy_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/proxy_test.cc b/runtime/proxy_test.cc index d8e170b32e..d055186f06 100644 --- a/runtime/proxy_test.cc +++ b/runtime/proxy_test.cc @@ -68,8 +68,8 @@ TEST_F(ProxyTest, ProxyClassHelper) { ASSERT_TRUE(proxy_class->IsInitialized()); EXPECT_EQ(2U, proxy_class->NumDirectInterfaces()); // Interfaces$I and Interfaces$J. - EXPECT_OBJ_PTR_EQ(I.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 0)); - EXPECT_OBJ_PTR_EQ(J.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 1)); + EXPECT_OBJ_PTR_EQ(I.Get(), proxy_class->GetDirectInterface(0)); + EXPECT_OBJ_PTR_EQ(J.Get(), proxy_class->GetDirectInterface(1)); std::string temp; const char* proxy_class_descriptor = proxy_class->GetDescriptor(&temp); EXPECT_STREQ("L$Proxy1234;", proxy_class_descriptor); |