diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 18:26:23 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 18:26:23 +0000 |
commit | 76bb9c355cc9d34bc3d489125d9764598d533289 (patch) | |
tree | c5f2c9aabc98d2e024ce1e1f537b972a7044b131 /chrome/test/ui/ui_test.cc | |
parent | 5da7c2d76833bb8d1580a8c3e09849a876fea65d (diff) | |
download | chromium_src-76bb9c355cc9d34bc3d489125d9764598d533289.zip chromium_src-76bb9c355cc9d34bc3d489125d9764598d533289.tar.gz chromium_src-76bb9c355cc9d34bc3d489125d9764598d533289.tar.bz2 |
Provide a method to specify to the automation interface the dir containing browser binaries
Problem:
The automation proxy interface kinda assumes that the running binary would
reside in the same directory as the browser binaries -- ie in Debug/Release
dirs. While this works for all C++ binaries like ui_tests, startup_tests,
this fails for pyauto tests since the running binary in this case is
/usr/bin/python (or some such system path).
This changeset lets pyauto explicitly specify the automation interface the
dir in which to look for chromium binaries.
Also, expose RunCommand method to pyauto.
BUG=37730
TEST=pyauto scripts should work without having to copy python to Debug/Release dirs
Review URL: http://codereview.chromium.org/695001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.cc')
-rw-r--r-- | chrome/test/ui/ui_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index a838327..b436368 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -1488,6 +1488,10 @@ void UITestBase::UseReferenceBuild() { #elif defined(OS_MACOSX) dir = dir.AppendASCII("chrome_mac"); #endif + SetBrowserDirectory(dir); +} + +void UITestBase::SetBrowserDirectory(const FilePath& dir) { browser_directory_ = dir; } |