diff options
author | Elliott Hughes <enh@google.com> | 2019-05-03 22:42:31 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2019-05-03 22:42:31 -0700 |
commit | b97e737c181d9dec996df6d6d7777b66a1aea946 (patch) | |
tree | 10169f13e5ce4956e8cf0ff1bb549f7b26f1e4af /libs/androidfw/tests/TestHelpers.cpp | |
parent | 5333210feffe4d5b829692a3ae68de02022e2334 (diff) |
Track libziparchive API change.
Bug: http://b/129068177
Test: treehugger
Change-Id: I88f49a06db416a7c6ec8afe87cc9cca825eb5ccb
Diffstat (limited to 'libs/androidfw/tests/TestHelpers.cpp')
-rw-r--r-- | libs/androidfw/tests/TestHelpers.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/androidfw/tests/TestHelpers.cpp b/libs/androidfw/tests/TestHelpers.cpp index 9e320a21b534..a81bb6ffab06 100644 --- a/libs/androidfw/tests/TestHelpers.cpp +++ b/libs/androidfw/tests/TestHelpers.cpp @@ -34,9 +34,8 @@ AssertionResult ReadFileFromZipToString(const std::string& zip_path, const std:: << "': " << ::ErrorCodeString(result); } - ::ZipString name(file.c_str()); ::ZipEntry entry; - result = ::FindEntry(handle, name, &entry); + result = ::FindEntry(handle, file.c_str(), &entry); if (result != 0) { ::CloseArchive(handle); return AssertionFailure() << "Could not find file '" << file << "' in zip '" << zip_path |