diff options
Diffstat (limited to 'runtime/mirror/object_test.cc')
-rw-r--r-- | runtime/mirror/object_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/mirror/object_test.cc b/runtime/mirror/object_test.cc index aa181ee875..1290a3d388 100644 --- a/runtime/mirror/object_test.cc +++ b/runtime/mirror/object_test.cc @@ -161,7 +161,7 @@ TEST_F(ObjectTest, AllocArray) { ScopedObjectAccess soa(Thread::Current()); Class* c = class_linker_->FindSystemClass(soa.Self(), "[I"); StackHandleScope<1> hs(soa.Self()); - Handle<Array> a( + MutableHandle<Array> a( hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), Runtime::Current()->GetHeap()->GetCurrentAllocator()))); EXPECT_TRUE(c == a->GetClass()); @@ -184,7 +184,7 @@ TEST_F(ObjectTest, AllocArray_FillUsable) { ScopedObjectAccess soa(Thread::Current()); Class* c = class_linker_->FindSystemClass(soa.Self(), "[B"); StackHandleScope<1> hs(soa.Self()); - Handle<Array> a( + MutableHandle<Array> a( hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), Runtime::Current()->GetHeap()->GetCurrentAllocator(), true))); EXPECT_TRUE(c == a->GetClass()); @@ -287,7 +287,7 @@ TEST_F(ObjectTest, CreateMultiArray) { StackHandleScope<2> hs(soa.Self()); Handle<Class> c(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I"))); - Handle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); + MutableHandle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); dims->Set<false>(0, 1); Array* multi = Array::CreateMultiArray(soa.Self(), c, dims); EXPECT_TRUE(multi->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[I")); @@ -485,8 +485,8 @@ TEST_F(ObjectTest, DescriptorCompare) { ArtMethod* m4_2 = klass2->GetVirtualMethod(3); EXPECT_STREQ(m4_2->GetName(), "m4"); - MethodHelper mh(hs.NewHandle(m1_1)); - MethodHelper mh2(hs.NewHandle(m1_2)); + MutableMethodHelper mh(hs.NewHandle(m1_1)); + MutableMethodHelper mh2(hs.NewHandle(m1_2)); EXPECT_TRUE(mh.HasSameNameAndSignature(&mh2)); EXPECT_TRUE(mh2.HasSameNameAndSignature(&mh)); |