Added pass to verify structure of dex file.

When a dex file is first opened, this pass runs through to make sure
sizes and offsets of the various sections of the dex file match the
header and don't overlap.

Change-Id: I4900c9665d6572ccfca2fe5f79d5d48ce7252036
diff --git a/src/image_test.cc b/src/image_test.cc
index 6901482..57afe68 100644
--- a/src/image_test.cc
+++ b/src/image_test.cc
@@ -18,7 +18,8 @@
 
 TEST_F(ImageTest, WriteRead) {
   ScratchFile tmp_oat;
-  bool success_oat = OatWriter::Create(tmp_oat.GetFile(), NULL, *compiler_.get());
+  std::vector<const DexFile*> dex_files;
+  bool success_oat = OatWriter::Create(tmp_oat.GetFile(), NULL, dex_files, *compiler_.get());
   ASSERT_TRUE(success_oat);
 
   // Force all system classes into memory