summaryrefslogtreecommitdiffstats
path: root/courgette/typedrva_unittest.cc
diff options
context:
space:
mode:
authorhuangs <huangs@chromium.org>2015-09-18 11:52:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-18 18:53:28 +0000
commit6d2a30316defffdd77c473547063316ebb9c279b (patch)
tree6de1afe27ab096196c1c4e92587c19519691b443 /courgette/typedrva_unittest.cc
parent6d5ddf5cd94ed429df19496948062fe137e68116 (diff)
downloadchromium_src-6d2a30316defffdd77c473547063316ebb9c279b.zip
chromium_src-6d2a30316defffdd77c473547063316ebb9c279b.tar.gz
chromium_src-6d2a30316defffdd77c473547063316ebb9c279b.tar.bz2
[Courgette] Refactor: Adding Rel32FinderWin32X86_Basic and Unittests
We're planning to improve heuristic to find Rel32 addresses for Win32 x86. First refactor by by extraacting the feature into its own class. This also lead to the extraction of RVA and various helpers from disassembler.h to image_utils.h. Also adding unittests for Rel32FinderWin32X86_Basic. The test is data-driven by adding a simple parser for test data. BUG= Review URL: https://codereview.chromium.org/1344173003 Cr-Commit-Position: refs/heads/master@{#349727}
Diffstat (limited to 'courgette/typedrva_unittest.cc')
-rw-r--r--courgette/typedrva_unittest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/courgette/typedrva_unittest.cc b/courgette/typedrva_unittest.cc
index 1fa185f..dc30fa9 100644
--- a/courgette/typedrva_unittest.cc
+++ b/courgette/typedrva_unittest.cc
@@ -5,6 +5,7 @@
#include "courgette/base_test_unittest.h"
#include "courgette/disassembler_elf_32_arm.h"
#include "courgette/disassembler_elf_32_x86.h"
+#include "courgette/image_utils.h"
class TypedRVATest : public BaseTest {
public: