diff options
author | 2015-12-15 22:17:21 +0000 | |
---|---|---|
committer | 2015-12-15 22:17:21 +0000 | |
commit | bc90a0538e56f98b8e138cb622e6b9d834244ad9 (patch) | |
tree | fd85833863a13ce4abc7baaea1d2059c2419ad1e /compiler/oat_test.cc | |
parent | 0bbc1727c446ee5f4cc3c28e68127164ef379594 (diff) | |
parent | ae358c1d5cef227b44d6f4971b79e1ab91aa26eb (diff) |
Merge "Revert "Combine direct_methods_ and virtual_methods_ fields of mirror::Class""
Diffstat (limited to 'compiler/oat_test.cc')
-rw-r--r-- | compiler/oat_test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/oat_test.cc b/compiler/oat_test.cc index 451aa682d6..eea52045cc 100644 --- a/compiler/oat_test.cc +++ b/compiler/oat_test.cc @@ -238,12 +238,12 @@ TEST_F(OatTest, WriteRead) { ++method_index; } size_t visited_virtuals = 0; - // TODO We should also check copied methods in this test. - for (auto& m : klass->GetDeclaredVirtualMethods(pointer_size)) { - EXPECT_FALSE(m.IsMiranda()); - CheckMethod(&m, oat_class.GetOatMethod(method_index), dex_file); - ++method_index; - ++visited_virtuals; + for (auto& m : klass->GetVirtualMethods(pointer_size)) { + if (!m.IsMiranda()) { + CheckMethod(&m, oat_class.GetOatMethod(method_index), dex_file); + ++method_index; + ++visited_virtuals; + } } EXPECT_EQ(visited_virtuals, num_virtual_methods); } |