Allow pyauto HTTP file server to serve files from an arbitrary directory
Allow pyauto HTTP file server to serve files from an arbitrary directory

The PyAuto HTTP file server is hard coded to serve its files from the
relative path "chrome/test/data". This has worked for tests within the
chromium project because they all store their data in that directory.

Now that Chromium Native Client had a dependency on PyAuto and uses
its HTTP server to serve files for its tests, the hard-coded relative
path will need to be replaced by the path to the NaCl staging directory,
which varies across platforms.

This patch adds a new parameter called "--http-data-dir" to
pyauto.py, so that the HTTP server path can be overridden. The default
remains "chrome/test/data", so Chromium tests that use the HTTP server
do not need any modifications.

BUG=77356
TEST=Run any pyauto functional test that uses the HTTP server

Review URL: http://codereview.chromium.org/6732051

git-svn-id: http://src.chromium.org/svn/trunk/src@80559 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: b08817cf9cf448252c088e723c86c9cadd9f170d
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser