diff options
author | jbudorick <jbudorick@chromium.org> | 2016-12-05 06:50:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-05 06:50:51 -0800 |
commit | f6ee820732b8717d32d85a47938172080067ce4e (patch) | |
tree | 22e1fb88071a521fe7ed2e1a421e5239e64f27d5 /testing/utils | |
parent | d65fd10e080751e42b9ea2696ae3f4e54839461c (diff) | |
download | pdfium-f6ee820732b8717d32d85a47938172080067ce4e.tar.xz |
[android] Make pdfium_unittests work on Android.
This updates test.gni to match chromium as of
crrev.com/d29ecfa7dc3ed49a2a49002ab941adb57c53e923, changes how
PathService::GetSourceDir behaves on Android, and specifies the runtime
test data for test_support.
BUG=pdfium:415
Review-Url: https://codereview.chromium.org/2541503002
Diffstat (limited to 'testing/utils')
-rw-r--r-- | testing/utils/path_service.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/utils/path_service.cpp b/testing/utils/path_service.cpp index a67a778953..1030c2bb17 100644 --- a/testing/utils/path_service.cpp +++ b/testing/utils/path_service.cpp @@ -73,7 +73,11 @@ bool PathService::GetSourceDir(std::string* path) { path->push_back(PATH_SEPARATOR); path->append(".."); path->push_back(PATH_SEPARATOR); +#if defined(ANDROID) + path->append("chromium_tests_root"); +#else // Non-Android path->append(".."); +#endif // defined(ANDROID) return true; } |