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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 2540603004: [Android] Redirect std{in,out,err} to sockets for layout tests. (Closed)
Patch Set: peter comments after layout_test_android -> scoped_android_configuration Created 4 years 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 unified diff | Download patch
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 self.host = host 166 self.host = host
167 self._executive = host.executive 167 self._executive = host.executive
168 self._filesystem = host.filesystem 168 self._filesystem = host.filesystem
169 self._webkit_finder = WebKitFinder(host.filesystem) 169 self._webkit_finder = WebKitFinder(host.filesystem)
170 170
171 self._http_server = None 171 self._http_server = None
172 self._websocket_server = None 172 self._websocket_server = None
173 self._is_wptserve_enabled = getattr(options, 'enable_wptserve', False) 173 self._is_wptserve_enabled = getattr(options, 'enable_wptserve', False)
174 self._wpt_server = None 174 self._wpt_server = None
175 self._image_differ = None 175 self._image_differ = None
176 self._server_process_constructor = server_process.ServerProcess # overr idable for testing 176 self.server_process_constructor = server_process.ServerProcess # overri dable for testing
177 self._http_lock = None # FIXME: Why does this live on the port object? 177 self._http_lock = None # FIXME: Why does this live on the port object?
178 self._dump_reader = None 178 self._dump_reader = None
179 179
180 # Python's Popen has a bug that causes any pipes opened to a 180 # Python's Popen has a bug that causes any pipes opened to a
181 # process that can't be executed to be leaked. Since this 181 # process that can't be executed to be leaked. Since this
182 # code is specifically designed to tolerate exec failures 182 # code is specifically designed to tolerate exec failures
183 # to gracefully handle cases where wdiff is not installed, 183 # to gracefully handle cases where wdiff is not installed,
184 # the bug results in a massive file descriptor leak. As a 184 # the bug results in a massive file descriptor leak. As a
185 # workaround, if an exec failure is ever experienced for 185 # workaround, if an exec failure is ever experienced for
186 # wdiff, assume it's not available. This will leak one 186 # wdiff, assume it's not available. This will leak one
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 1795
1796 def __init__(self, base, args, reference_args=None): 1796 def __init__(self, base, args, reference_args=None):
1797 self.name = base 1797 self.name = base
1798 self.base = base 1798 self.base = base
1799 self.args = args 1799 self.args = args
1800 self.reference_args = args if reference_args is None else reference_args 1800 self.reference_args = args if reference_args is None else reference_args
1801 self.tests = set() 1801 self.tests = set()
1802 1802
1803 def __repr__(self): 1803 def __repr__(self):
1804 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args) 1804 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698