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

Unified Diff: courgette/adjustment_method_unittest.cc

Issue 2583373002: [Courgette] Simple AssemblyProgram and Disassembler cleanups. (Closed)
Patch Set: Sync. Created 3 years, 11 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
« no previous file with comments | « no previous file | courgette/assembly_program.h » ('j') | courgette/assembly_program.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/adjustment_method_unittest.cc
diff --git a/courgette/adjustment_method_unittest.cc b/courgette/adjustment_method_unittest.cc
index 970a652dc8e62631310bab8e4ff612fb6374acce..aed0bebb1e23909c8e2e13e1bff62cc2d74f9476 100644
--- a/courgette/adjustment_method_unittest.cc
+++ b/courgette/adjustment_method_unittest.cc
@@ -35,8 +35,8 @@ class AdjustmentMethodTest : public testing::Test {
// Returns one of two similar simple programs. These differ only in Label
// assignment, so it is possible to make them look identical.
std::unique_ptr<AssemblyProgram> MakeProgram(int kind) const {
- std::unique_ptr<AssemblyProgram> prog(new AssemblyProgram(EXE_WIN_32_X86));
- prog->set_image_base(0x00400000);
+ std::unique_ptr<AssemblyProgram> prog(
+ new AssemblyProgram(EXE_WIN_32_X86, 0x00400000));
grt (UTC plus 2) 2017/01/12 11:56:40 nit: auto prog = base::MakeUnique<AssemblyProg
huangs 2017/01/12 19:54:41 Done.
RVA kRvaA = 0x00410000;
RVA kRvaB = 0x00410004;
« no previous file with comments | « no previous file | courgette/assembly_program.h » ('j') | courgette/assembly_program.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698