| OLD | NEW |
| 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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 | 1120 |
| 1121 Ports can stub this out if they don't need a websocket server to be runn
ing.""" | 1121 Ports can stub this out if they don't need a websocket server to be runn
ing.""" |
| 1122 assert not self._websocket_server, 'Already running a websocket server.' | 1122 assert not self._websocket_server, 'Already running a websocket server.' |
| 1123 | 1123 |
| 1124 server = pywebsocket.PyWebSocket(self, self.results_directory()) | 1124 server = pywebsocket.PyWebSocket(self, self.results_directory()) |
| 1125 server.start() | 1125 server.start() |
| 1126 self._websocket_server = server | 1126 self._websocket_server = server |
| 1127 | 1127 |
| 1128 def http_server_supports_ipv6(self): | 1128 def http_server_supports_ipv6(self): |
| 1129 # Apache < 2.4 on win32 does not support IPv6, nor does cygwin apache. | 1129 # Apache < 2.4 on win32 does not support IPv6, nor does cygwin apache. |
| 1130 if self.host.platform.is_cygwin() or self.get_option('use_apache') and s
elf.host.platform.is_win(): | 1130 if self.host.platform.is_cygwin() or (self.uses_apache() and self.host.p
latform.is_win()): |
| 1131 return False | 1131 return False |
| 1132 return True | 1132 return True |
| 1133 | 1133 |
| 1134 def stop_helper(self): | 1134 def stop_helper(self): |
| 1135 """Shut down the test helper if it is running. Do nothing if | 1135 """Shut down the test helper if it is running. Do nothing if |
| 1136 it isn't, or it isn't available. If a port overrides start_helper() | 1136 it isn't, or it isn't available. If a port overrides start_helper() |
| 1137 it must override this routine as well.""" | 1137 it must override this routine as well.""" |
| 1138 if self._helper: | 1138 if self._helper: |
| 1139 _log.debug("Stopping layout test helper") | 1139 _log.debug("Stopping layout test helper") |
| 1140 try: | 1140 try: |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1808 | 1808 |
| 1809 class PhysicalTestSuite(object): | 1809 class PhysicalTestSuite(object): |
| 1810 def __init__(self, base, args): | 1810 def __init__(self, base, args): |
| 1811 self.name = base | 1811 self.name = base |
| 1812 self.base = base | 1812 self.base = base |
| 1813 self.args = args | 1813 self.args = args |
| 1814 self.tests = set() | 1814 self.tests = set() |
| 1815 | 1815 |
| 1816 def __repr__(self): | 1816 def __repr__(self): |
| 1817 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) | 1817 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self
.args) |
| OLD | NEW |