summaryrefslogtreecommitdiff
path: root/compiler/oat_test.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2015-12-15 22:15:26 +0000
committer Alex Light <allight@google.com> 2015-12-15 22:15:26 +0000
commitae358c1d5cef227b44d6f4971b79e1ab91aa26eb (patch)
tree95c22194af5ea38a4fa5fc8bbe07ba60b6d0a021 /compiler/oat_test.cc
parent6286a97bea0f584342803a215550038852b24776 (diff)
Revert "Combine direct_methods_ and virtual_methods_ fields of mirror::Class"
This reverts commit 6286a97bea0f584342803a215550038852b24776. Change-Id: I5b00f6d1350e9c587acd4b185367dc815ea707de
Diffstat (limited to 'compiler/oat_test.cc')
-rw-r--r--compiler/oat_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/oat_test.cc b/compiler/oat_test.cc
index b849b122d0..a2b29a30a9 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);
}