From f6ee820732b8717d32d85a47938172080067ce4e Mon Sep 17 00:00:00 2001 From: jbudorick Date: Mon, 5 Dec 2016 06:50:50 -0800 Subject: [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 --- testing/utils/path_service.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testing/utils') 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; } -- cgit v1.2.3