summaryrefslogtreecommitdiff
path: root/tools/hiddenapi/hiddenapi_test.cc
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2019-03-29 20:20:16 +0000
committer Roland Levillain <rpl@google.com> 2019-04-12 13:47:09 +0100
commitfb6a5c00ef02cda7ea919d717daaf46abd0414e4 (patch)
tree9ecfaac9bee174b3b31e0294c46c4d32a5f7b714 /tools/hiddenapi/hiddenapi_test.cc
parentf160394fda141184f0ec3d139ec5ca810f142bda (diff)
Add and use art::GetAndroidRuntimeBinDir.
This method returns the location of the directory containing the Android Runtime binaries, which is expected to be the Android Runtime APEX's bin directory on target and the Android Root's bin directory on host (at least for now). Also remove art::CommonArtTestImpl::GetTestAndroidRoot as it is no longer used. Test: ART gtests on host and target Bug: 121117762 Change-Id: I4593bbd4d675ca9d3f7b708482aac82c1892a9ad
Diffstat (limited to 'tools/hiddenapi/hiddenapi_test.cc')
-rw-r--r--tools/hiddenapi/hiddenapi_test.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/hiddenapi/hiddenapi_test.cc b/tools/hiddenapi/hiddenapi_test.cc
index 9f65a5450c..7c9a95cbfd 100644
--- a/tools/hiddenapi/hiddenapi_test.cc
+++ b/tools/hiddenapi/hiddenapi_test.cc
@@ -31,10 +31,9 @@ namespace art {
class HiddenApiTest : public CommonRuntimeTest {
protected:
std::string GetHiddenApiCmd() {
- std::string file_path = GetTestAndroidRoot();
- file_path += "/bin/hiddenapi";
+ std::string file_path = GetAndroidRuntimeBinDir() + "/hiddenapi";
if (kIsDebugBuild) {
- file_path += "d";
+ file_path += 'd';
}
if (!OS::FileExists(file_path.c_str())) {
LOG(FATAL) << "Could not find binary " << file_path;