Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 9372065: Update clients to use new TestServer constructor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove files that were reviewed and committed separately. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/perf/mach_ports_test.cc ('k') | chrome/test/pyautolib/pyautolib.i » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 793dd95b33db6998dca35c275dd44bb104e626b8..72d13726201087e44f2f4bf82e457f006896bffc 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -748,7 +748,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
A handle to Sync Server, an instance of TestServer
"""
sync_server = pyautolib.TestServer(pyautolib.TestServer.TYPE_SYNC,
- pyautolib.FilePath(''))
+ '127.0.0.1',
+ pyautolib.FilePath(''))
assert sync_server.Start(), 'Could not start sync server'
sync_server.ports = dict(port=sync_server.GetPort(),
xmpp_port=sync_server.GetSyncXmppPort())
@@ -771,7 +772,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
handle to FTP Server, an instance of TestServer
"""
ftp_server = pyautolib.TestServer(pyautolib.TestServer.TYPE_FTP,
- pyautolib.FilePath(data_dir))
+ '127.0.0.1',
+ pyautolib.FilePath(data_dir))
assert ftp_server.Start(), 'Could not start ftp server'
logging.debug('Started ftp server at "%s".', data_dir)
return ftp_server
@@ -793,7 +795,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
handle to the HTTP TestServer
"""
http_server = pyautolib.TestServer(pyautolib.TestServer.TYPE_HTTP,
- pyautolib.FilePath(data_dir))
+ '127.0.0.1',
+ pyautolib.FilePath(data_dir))
assert http_server.Start(), 'Could not start HTTP server'
logging.debug('Started HTTP server at "%s".', data_dir)
return http_server
@@ -4637,7 +4640,8 @@ class PyUITestSuite(pyautolib.PyUITestSuiteBase, unittest.TestSuite):
assert not _HTTP_SERVER, 'HTTP Server already started'
http_data_dir = _OPTIONS.http_data_dir
http_server = pyautolib.TestServer(pyautolib.TestServer.TYPE_HTTP,
- pyautolib.FilePath(http_data_dir))
+ '127.0.0.1',
+ pyautolib.FilePath(http_data_dir))
assert http_server.Start(), 'Could not start http server'
_HTTP_SERVER = http_server
logging.debug('Started http server at "%s".', http_data_dir)
« no previous file with comments | « chrome/test/perf/mach_ports_test.cc ('k') | chrome/test/pyautolib/pyautolib.i » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698