summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-06-26 13:10:49 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-06-26 13:10:49 +0000
commit8d9815f4b12e42a4b327e8ee2a3d39a280a8a2c6 (patch)
tree0ae986eea6067bbb733e9ca54ef643222e087046 /compiler/common_compiler_test.cc
parentfad8ad743e27b5d809f4e7d71d50fe3726cc7b2a (diff)
parent213ee2da6a1c58d0fc12c937bbd9c9974ca00aca (diff)
Merge "Move dex_files_for_oat_file_ to CompilerOptions."
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r--compiler/common_compiler_test.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index 7491173ed6..52c767f935 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -40,6 +40,7 @@
#include "oat_quick_method_header.h"
#include "scoped_thread_state_change-inl.h"
#include "thread-current-inl.h"
+#include "utils/atomic_dex_ref_map-inl.h"
namespace art {
@@ -332,4 +333,10 @@ void CommonCompilerTest::UnreserveImageSpace() {
image_reservation_.reset();
}
+void CommonCompilerTest::SetDexFilesForOatFile(const std::vector<const DexFile*>& dex_files) {
+ compiler_options_->dex_files_for_oat_file_ = dex_files;
+ compiler_driver_->compiled_classes_.AddDexFiles(dex_files);
+ compiler_driver_->dex_to_dex_compiler_.SetDexFiles(dex_files);
+}
+
} // namespace art