diff options
author | 2013-08-16 14:36:13 -0700 | |
---|---|---|
committer | 2013-08-16 14:57:10 -0700 | |
commit | 0e480cad5d2cf0904b98b7b56e90280e9b97ba30 (patch) | |
tree | 56e12c8d362e1c6aaef38e8d1f7e54ade1b3a21c | |
parent | d2b0f33cf01601f040494f4f882e60f70b527930 (diff) |
Move output_stream files out of runtime.
Also move image_test and oat_test that are more writing tests.
Change-Id: I6af1400d8e745bbf87f626ca87dae3e2d85b40f1
-rw-r--r-- | build/Android.gtest.mk | 6 | ||||
-rw-r--r-- | compiler/Android.mk | 1 | ||||
-rw-r--r-- | compiler/file_output_stream.cc (renamed from runtime/file_output_stream.cc) | 0 | ||||
-rw-r--r-- | compiler/file_output_stream.h (renamed from runtime/file_output_stream.h) | 8 | ||||
-rw-r--r-- | compiler/image_test.cc (renamed from runtime/image_test.cc) | 0 | ||||
-rw-r--r-- | compiler/oat_test.cc (renamed from runtime/oat_test.cc) | 0 | ||||
-rw-r--r-- | compiler/output_stream.h (renamed from runtime/output_stream.h) | 6 | ||||
-rw-r--r-- | compiler/output_stream_test.cc (renamed from runtime/output_stream_test.cc) | 0 | ||||
-rw-r--r-- | runtime/Android.mk | 1 |
9 files changed, 11 insertions, 11 deletions
diff --git a/build/Android.gtest.mk b/build/Android.gtest.mk index 498f7ef11b..a150f0653c 100644 --- a/build/Android.gtest.mk +++ b/build/Android.gtest.mk @@ -19,7 +19,10 @@ LOCAL_PATH := art TEST_COMMON_SRC_FILES := \ compiler/driver/compiler_driver_test.cc \ compiler/elf_writer_test.cc \ + compiler/image_test.cc \ compiler/jni/jni_compiler_test.cc \ + compiler/oat_test.cc \ + compiler/output_stream_test.cc \ compiler/utils/arm/managed_register_arm_test.cc \ compiler/utils/x86/managed_register_x86_test.cc \ runtime/barrier_test.cc \ @@ -41,7 +44,6 @@ TEST_COMMON_SRC_FILES := \ runtime/gc/heap_test.cc \ runtime/gc/space/space_test.cc \ runtime/gtest_test.cc \ - runtime/image_test.cc \ runtime/indenter_test.cc \ runtime/indirect_reference_table_test.cc \ runtime/intern_table_test.cc \ @@ -49,8 +51,6 @@ TEST_COMMON_SRC_FILES := \ runtime/mem_map_test.cc \ runtime/mirror/dex_cache_test.cc \ runtime/mirror/object_test.cc \ - runtime/oat_test.cc \ - runtime/output_stream_test.cc \ runtime/reference_table_test.cc \ runtime/runtime_test.cc \ runtime/thread_pool_test.cc \ diff --git a/compiler/Android.mk b/compiler/Android.mk index 5caf688d29..3791946cef 100644 --- a/compiler/Android.mk +++ b/compiler/Android.mk @@ -87,6 +87,7 @@ LIBART_COMPILER_SRC_FILES := \ elf_stripper.cc \ elf_writer.cc \ elf_writer_quick.cc \ + file_output_stream.cc \ image_writer.cc \ oat_writer.cc \ vector_output_stream.cc diff --git a/runtime/file_output_stream.cc b/compiler/file_output_stream.cc index 0e4a2949ed..0e4a2949ed 100644 --- a/runtime/file_output_stream.cc +++ b/compiler/file_output_stream.cc diff --git a/runtime/file_output_stream.h b/compiler/file_output_stream.h index 23a57f57c6..bde9e68eaa 100644 --- a/runtime/file_output_stream.h +++ b/compiler/file_output_stream.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ART_RUNTIME_FILE_OUTPUT_STREAM_H_ -#define ART_RUNTIME_FILE_OUTPUT_STREAM_H_ +#ifndef ART_COMPILER_FILE_OUTPUT_STREAM_H_ +#define ART_COMPILER_FILE_OUTPUT_STREAM_H_ #include "output_stream.h" @@ -34,11 +34,11 @@ class FileOutputStream : public OutputStream { virtual off_t Seek(off_t offset, Whence whence); private: - File* file_; + File* const file_; DISALLOW_COPY_AND_ASSIGN(FileOutputStream); }; } // namespace art -#endif // ART_RUNTIME_FILE_OUTPUT_STREAM_H_ +#endif // ART_COMPILER_FILE_OUTPUT_STREAM_H_ diff --git a/runtime/image_test.cc b/compiler/image_test.cc index dcafc193dd..dcafc193dd 100644 --- a/runtime/image_test.cc +++ b/compiler/image_test.cc diff --git a/runtime/oat_test.cc b/compiler/oat_test.cc index 74b5da9eff..74b5da9eff 100644 --- a/runtime/oat_test.cc +++ b/compiler/oat_test.cc diff --git a/runtime/output_stream.h b/compiler/output_stream.h index e7f8006db9..112dcfca74 100644 --- a/runtime/output_stream.h +++ b/compiler/output_stream.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ART_RUNTIME_OUTPUT_STREAM_H_ -#define ART_RUNTIME_OUTPUT_STREAM_H_ +#ifndef ART_COMPILER_OUTPUT_STREAM_H_ +#define ART_COMPILER_OUTPUT_STREAM_H_ #include <stdint.h> @@ -53,4 +53,4 @@ class OutputStream { } // namespace art -#endif // ART_RUNTIME_OUTPUT_STREAM_H_ +#endif // ART_COMPILER_OUTPUT_STREAM_H_ diff --git a/runtime/output_stream_test.cc b/compiler/output_stream_test.cc index d5e97558c0..d5e97558c0 100644 --- a/runtime/output_stream_test.cc +++ b/compiler/output_stream_test.cc diff --git a/runtime/Android.mk b/runtime/Android.mk index b34abe4282..1ce7a3055d 100644 --- a/runtime/Android.mk +++ b/runtime/Android.mk @@ -44,7 +44,6 @@ LIBART_COMMON_SRC_FILES := \ disassembler_mips.cc \ disassembler_x86.cc \ elf_file.cc \ - file_output_stream.cc \ gc/allocator/dlmalloc.cc \ gc/accounting/card_table.cc \ gc/accounting/gc_allocator.cc \ |