diff options
| author | 2018-02-28 01:49:55 +0000 | |
|---|---|---|
| committer | 2018-02-28 01:49:55 +0000 | |
| commit | 9c3abd4631d6f8c86c69aa0dde5d6c1f0b97fb94 (patch) | |
| tree | 39055862c8ce0d08c42f98aaf3e191ecc94540ab | |
| parent | 361f2e0366dec3560664dc20c9834f31c505814a (diff) | |
| parent | 1ebe77f1520fbbd7f633eef42c867fe79b672c1d (diff) | |
Merge "Use absolute paths in tests."
| -rw-r--r-- | cmds/installd/InstalldNativeService.cpp | 1 | ||||
| -rw-r--r-- | cmds/installd/tests/installd_dexopt_test.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index ffdd327c29..68acc69312 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -103,6 +103,7 @@ static binder::Status ok() { } static binder::Status exception(uint32_t code, const std::string& msg) { + LOG(ERROR) << msg << " (" << code << ")"; return binder::Status::fromExceptionCode(code, String8(msg.c_str())); } diff --git a/cmds/installd/tests/installd_dexopt_test.cpp b/cmds/installd/tests/installd_dexopt_test.cpp index db55be72c4..d640558d3b 100644 --- a/cmds/installd/tests/installd_dexopt_test.cpp +++ b/cmds/installd/tests/installd_dexopt_test.cpp @@ -375,7 +375,7 @@ protected: bool prof_result; binder::Status prof_binder_result = service_->prepareAppProfile( - package_name_, kTestUserId, kTestAppId, *profile_name_ptr, /*code path*/ "base.apk", + package_name_, kTestUserId, kTestAppId, *profile_name_ptr, apk_path_, /*dex_metadata*/ nullptr, &prof_result); ASSERT_TRUE(prof_binder_result.isOk()) << prof_binder_result.toString8().c_str(); @@ -731,7 +731,7 @@ class ProfileTest : public DexoptTest { bool expected_result) { bool result; binder::Status binder_result = service_->prepareAppProfile( - package_name, kTestUserId, kTestAppId, profile_name, /*code path*/ "base.apk", + package_name, kTestUserId, kTestAppId, profile_name, apk_path_, /*dex_metadata*/ nullptr, &result); ASSERT_TRUE(binder_result.isOk()) << binder_result.toString8().c_str(); ASSERT_EQ(expected_result, result); |