summaryrefslogtreecommitdiff
path: root/compiler/oat_test.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2015-12-15 22:15:34 +0000
committer Alex Light <allight@google.com> 2015-12-15 22:15:34 +0000
commit2efb0aa57da168944f99a2d13aed2a426cfa76e7 (patch)
tree5ca742f9a2a89f9c3c588f6f1863ab55bbdb5c5c /compiler/oat_test.cc
parent9539150b85142c18e9e8c2264b5b6100942667c3 (diff)
Revert "Combine direct_methods_ and virtual_methods_ fields of mirror::Class"
This reverts commit 9539150b85142c18e9e8c2264b5b6100942667c3. Change-Id: I596876cd643ec0ad524a56621efb6b89e8886230
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 d6aafcbeef..c414e3120f 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);
}