summaryrefslogtreecommitdiffstats
path: root/runtime/common_runtime_test.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-08-06 14:53:03 -0700
committerAndreas Gampe <agampe@google.com>2014-08-06 16:06:28 -0700
commit7747c8de402f64e3009ca3bcccebddbb70f617ee (patch)
tree491fb0e346d6e0821d209b9617f0abfac78aedb1 /runtime/common_runtime_test.h
parent57cd9d3bda952ee2c2cf977fb1e26a0a954e1bab (diff)
downloadart-7747c8de402f64e3009ca3bcccebddbb70f617ee.tar.gz
art-7747c8de402f64e3009ca3bcccebddbb70f617ee.tar.bz2
art-7747c8de402f64e3009ca3bcccebddbb70f617ee.zip
ART: Remove test files after test
The unix_file tests should remove files and directories when they are done testing. Bug: 16505797 Change-Id: Iff6856f64ee42ee9818b4ac23a6de3fe7eec6eae
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r--runtime/common_runtime_test.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h
index 363d8daaf8..0fefc210bd 100644
--- a/runtime/common_runtime_test.h
+++ b/runtime/common_runtime_test.h
@@ -64,7 +64,13 @@ class ScratchFile {
class CommonRuntimeTest : public testing::Test {
public:
- static void SetEnvironmentVariables(std::string& android_data);
+ static void SetUpAndroidRoot();
+
+ // Note: setting up ANDROID_DATA may create a temporary directory. If this is used in a
+ // non-derived class, be sure to also call the corresponding tear-down below.
+ static void SetUpAndroidData(std::string& android_data);
+
+ static void TearDownAndroidData(const std::string& android_data, bool fail_on_error);
CommonRuntimeTest();
~CommonRuntimeTest();