diff options
author | David Srbecky <dsrbecky@google.com> | 2015-04-12 07:45:18 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2015-04-21 12:37:13 +0100 |
commit | 3e52aa4d406fe802dabee2a2e7ba8764cc13aaaa (patch) | |
tree | 81b2d22b3fae45a0c92e688a3502335c02397934 /runtime/common_runtime_test.h | |
parent | f458ba7d9c04bc8d499532b5470af28db18e4149 (diff) | |
download | art-3e52aa4d406fe802dabee2a2e7ba8764cc13aaaa.tar.gz art-3e52aa4d406fe802dabee2a2e7ba8764cc13aaaa.tar.bz2 art-3e52aa4d406fe802dabee2a2e7ba8764cc13aaaa.zip |
Move GetAndroidToolsDir to common location.
Move the code which looks for the prebuilts directory
to CommonRuntimeTest and add test for it.
Change-Id: Id804de31c466656957fdd4b6a470f80a00477aed
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r-- | runtime/common_runtime_test.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h index 5fbc2ee680..991737893a 100644 --- a/runtime/common_runtime_test.h +++ b/runtime/common_runtime_test.h @@ -22,6 +22,7 @@ #include <string> +#include "arch/instruction_set.h" #include "base/mutex.h" #include "globals.h" #include "os.h" @@ -79,6 +80,12 @@ class CommonRuntimeTest : public testing::Test { // Gets the path of the libcore dex file. static std::string GetLibCoreDexFileName(); + // Returns bin directory which contains host's prebuild tools. + static std::string GetAndroidHostToolsDir(); + + // Returns bin directory which contains target's prebuild tools. + static std::string GetAndroidTargetToolsDir(InstructionSet isa); + protected: static bool IsHost() { return !kIsTargetBuild; |