Refactor compiler tests around CompilerDriver.
Introduce CommonCompilerDriverTest and inherit that in tests
that need to use CompilerDriver. This is in preparation for
moving the CompilerDriver to dex2oat/.
Test: m test-art-host-gtest
Change-Id: I46cf0bc1df4327569eef5526eeab0781473173a1
diff --git a/compiler/Android.bp b/compiler/Android.bp
index 0ebaa5f..04c6cc5 100644
--- a/compiler/Android.bp
+++ b/compiler/Android.bp
@@ -339,7 +339,10 @@
art_cc_library {
name: "libart-compiler-gtest",
defaults: ["libart-gtest-defaults"],
- srcs: ["common_compiler_test.cc"],
+ srcs: [
+ "common_compiler_driver_test.cc",
+ "common_compiler_test.cc",
+ ],
shared_libs: [
"libartd-compiler",
"libartd-disassembler",