From e9987b0831403858d95bdd7a5ef9e56665a9702d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 22 May 2018 16:26:43 +0100 Subject: ObjPtr<>-ify tests using ClassLinker::FindClass(). ClassLinker::FindClass() returns a non-ObjPtr<> reference but it has a lot of uses, so we shall change the uses in a few steps. This change deals with several tests. Test: Rely on TreeHugger. Bug: 31113334 Change-Id: Ib75e20e7ebaff01fb607a09f96675f8cf397ae52 --- compiler/jni/jni_compiler_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/jni/jni_compiler_test.cc') diff --git a/compiler/jni/jni_compiler_test.cc b/compiler/jni/jni_compiler_test.cc index c643af787d..3cb4a652ad 100644 --- a/compiler/jni/jni_compiler_test.cc +++ b/compiler/jni/jni_compiler_test.cc @@ -245,7 +245,7 @@ class JniCompilerTest : public CommonCompilerTest { Handle loader( hs.NewHandle(soa.Decode(class_loader))); // Compile the native method before starting the runtime - mirror::Class* c = class_linker_->FindClass(soa.Self(), "LMyClassNatives;", loader); + ObjPtr c = class_linker_->FindClass(soa.Self(), "LMyClassNatives;", loader); const auto pointer_size = class_linker_->GetImagePointerSize(); ArtMethod* method = c->FindClassMethod(method_name, method_sig, pointer_size); ASSERT_TRUE(method != nullptr) << method_name << " " << method_sig; -- cgit v1.2.3-59-g8ed1b