diff options
author | Andreas Gampe <agampe@google.com> | 2014-09-11 08:30:08 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-09-15 19:50:12 -0700 |
commit | 5a4b8a236030460651a3136397d23ca6744e7eb7 (patch) | |
tree | 0e43891398e416d3fa77c7de391bf4db4408e8ee /runtime/mirror/object_test.cc | |
parent | 19f7c95491a053b818f914137fa73df0517b8792 (diff) | |
download | art-5a4b8a236030460651a3136397d23ca6744e7eb7.zip art-5a4b8a236030460651a3136397d23ca6744e7eb7.tar.gz art-5a4b8a236030460651a3136397d23ca6744e7eb7.tar.bz2 |
ART: Rename Handle hierarchy
Bring the names in line with normal OO principles: ConstHandle
becomes Handle, and Handle becomes MutableHandle.
Change-Id: I0f018eb7ba28bc422e3a23dd73a6cbe6fc2d2044
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 aa181ee..1290a3d 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)); |