Externalize test code
Change-Id: Iab19397c7a72fb9a3ca63bfd0bc4eaf1a98138ba
diff --git a/src/dex_verifier_test.cc b/src/dex_verifier_test.cc
index f1d99e6..a9da38f 100644
--- a/src/dex_verifier_test.cc
+++ b/src/dex_verifier_test.cc
@@ -2,13 +2,11 @@
#include "class_linker.h"
#include "common_test.h"
-#include "compiler_test.h"
#include "dex_file.h"
#include "dex_verifier.h"
#include "scoped_ptr.h"
#include <stdio.h>
-#include "gtest/gtest.h"
namespace art {
@@ -40,8 +38,8 @@
}
TEST_F(DexVerifierTest, IntMath) {
- const DexFile* dex = OpenDexFileBase64(kIntMathDex, "kIntMathDex");
- PathClassLoader* class_loader = AllocPathClassLoader(dex);
+ scoped_ptr<const DexFile> dex(OpenTestDexFile("IntMath"));
+ PathClassLoader* class_loader = AllocPathClassLoader(dex.get());
Class* klass = class_linker_->FindClass("LIntMath;", class_loader);
ASSERT_TRUE(DexVerify::VerifyClass(klass));
}