Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: courgette/adjustment_method_unittest.cc

Issue 2793153003: [Courgette] Refactor: Store Label Annotation in AssemblyProgram for patch generation. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: courgette/adjustment_method_unittest.cc
diff --git a/courgette/adjustment_method_unittest.cc b/courgette/adjustment_method_unittest.cc
index b60af9c8f4a5e861aff8df03c5f49f57cfd5e92c..64a2acfbe8fbb5cf7186158f89b875ac38e2ab7e 100644
--- a/courgette/adjustment_method_unittest.cc
+++ b/courgette/adjustment_method_unittest.cc
@@ -65,7 +65,9 @@ class AdjustmentMethodTest : public testing::Test {
},
labelA, labelB);
- EXPECT_TRUE(prog->GenerateInstructions(gen));
+ EXPECT_TRUE(prog->GenerateInstructions(gen, true));
+ EXPECT_EQ(6U, prog->abs32_label_annotation().size());
+ EXPECT_EQ(0U, prog->rel32_label_annotation().size());
if (kind == 0) {
labelA->index_ = 0;

Powered by Google App Engine
This is Rietveld 408576698