More field order validation.

This is to set me up to remove the redundant fields like declaring
class and name from field and method.

Change-Id: Ie834c615b33caed89c443fa23c25b7757d4b7ef3
diff --git a/src/common_test.h b/src/common_test.h
index c4a3d1f..cfc0a5f 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -211,6 +211,18 @@
     return DexFile::OpenFile(libcore_dex_file_name.c_str());
   }
 
+  void UseLibCoreDex() {
+    delete runtime_.release();
+    java_lang_dex_file_.reset(GetLibCoreDex());
+
+    std::vector<DexFile*> boot_class_path;
+    boot_class_path.push_back(java_lang_dex_file_.get());
+
+    runtime_.reset(Runtime::Create(boot_class_path));
+    ASSERT_TRUE(runtime_ != NULL);
+    class_linker_ = runtime_->GetClassLinker();
+  }
+
   bool is_host_;
   scoped_ptr<DexFile> java_lang_dex_file_;
   scoped_ptr<Runtime> runtime_;