Change of DumpRenderTree directory on Android.

This change is according to the change in WebKit:
https://bugs.webkit.org/show_bug.cgi?id=91910

BUG=none


Review URL: https://chromiumcodereview.appspot.com/10826158

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150371 0039d316-1c4b-4281-b951-d872f2087c98
parent cc452e89
......@@ -24,9 +24,7 @@ namespace {
// The place where the Android layout test script will put the required tools
// and resources. Must keep consistent with DEVICE_DRT_DIR in
// WebKit/Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py.
// TODO(wangxianzhu): Allow running DRT on non-rooted device by putting
// the tools and resources into the apk or under /data/local/tmp.
const char kDumpRenderTreeDir[] = "/data/drt";
const char kDumpRenderTreeDir[] = "/data/local/tmp/drt";
}
......@@ -35,6 +33,11 @@ namespace webkit_support {
void BeforeInitialize(bool unit_test_mode) {
base::InitAndroidTestPaths();
// Place cache under kDumpRenderTreeDir to allow the NRWT script to clear it.
FilePath path(kDumpRenderTreeDir);
path = path.Append("cache");
PathService::Override(base::DIR_CACHE, path);
// Set XML_CATALOG_FILES environment variable to blank to prevent libxml from
// loading and complaining the non-exsistent /etc/xml/catalog file.
setenv("XML_CATALOG_FILES", "", 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment