diff options
| author | 2016-04-19 18:26:22 +0000 | |
|---|---|---|
| committer | 2016-04-19 18:26:22 +0000 | |
| commit | 6435910a65067fb38477232b2620cc53978b13c7 (patch) | |
| tree | d607c9103f46242bce5ed75297c20087c0e3f8cd /compiler/optimizing/nodes_test.cc | |
| parent | 814ae9448d7a620a1855d53c7b69b1b377944a67 (diff) | |
| parent | 46817b876ab00d6b78905b80ed12b4344c522b6c (diff) | |
Merge "Use iterators "before" the use node in HUserRecord<>."
Diffstat (limited to 'compiler/optimizing/nodes_test.cc')
| -rw-r--r-- | compiler/optimizing/nodes_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/nodes_test.cc b/compiler/optimizing/nodes_test.cc index 764f5fec5b..d4e2a58103 100644 --- a/compiler/optimizing/nodes_test.cc +++ b/compiler/optimizing/nodes_test.cc @@ -91,7 +91,7 @@ TEST(Node, InsertInstruction) { entry->InsertInstructionBefore(to_insert, parameter2); ASSERT_TRUE(parameter1->HasUses()); - ASSERT_TRUE(parameter1->GetUses().HasOnlyOneUse()); + ASSERT_TRUE(parameter1->GetUses().HasExactlyOneElement()); } /** @@ -115,7 +115,7 @@ TEST(Node, AddInstruction) { entry->AddInstruction(to_add); ASSERT_TRUE(parameter->HasUses()); - ASSERT_TRUE(parameter->GetUses().HasOnlyOneUse()); + ASSERT_TRUE(parameter->GetUses().HasExactlyOneElement()); } TEST(Node, ParentEnvironment) { @@ -134,7 +134,7 @@ TEST(Node, ParentEnvironment) { entry->AddInstruction(new (&allocator) HExit()); ASSERT_TRUE(parameter1->HasUses()); - ASSERT_TRUE(parameter1->GetUses().HasOnlyOneUse()); + ASSERT_TRUE(parameter1->GetUses().HasExactlyOneElement()); HEnvironment* environment = new (&allocator) HEnvironment( &allocator, 1, graph->GetDexFile(), graph->GetMethodIdx(), 0, kStatic, with_environment); @@ -145,7 +145,7 @@ TEST(Node, ParentEnvironment) { with_environment->SetRawEnvironment(environment); ASSERT_TRUE(parameter1->HasEnvironmentUses()); - ASSERT_TRUE(parameter1->GetEnvUses().HasOnlyOneUse()); + ASSERT_TRUE(parameter1->GetEnvUses().HasExactlyOneElement()); HEnvironment* parent1 = new (&allocator) HEnvironment( &allocator, 1, graph->GetDexFile(), graph->GetMethodIdx(), 0, kStatic, nullptr); |