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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 from webkitpy.layout_tests.port import base | 43 from webkitpy.layout_tests.port import base |
44 from webkitpy.layout_tests.servers import crash_service | 44 from webkitpy.layout_tests.servers import crash_service |
45 | 45 |
46 | 46 |
47 _log = logging.getLogger(__name__) | 47 _log = logging.getLogger(__name__) |
48 | 48 |
49 | 49 |
50 class WinPort(base.Port): | 50 class WinPort(base.Port): |
51 port_name = 'win' | 51 port_name = 'win' |
52 | 52 |
53 SUPPORTED_VERSIONS = ('xp', 'win7', 'win10') | 53 SUPPORTED_VERSIONS = ('win7', 'win10') |
54 | 54 |
55 FALLBACK_PATHS = {'win10': ['win']} | 55 FALLBACK_PATHS = {'win10': ['win']} |
56 FALLBACK_PATHS['win7'] = ['win7'] + FALLBACK_PATHS['win10'] | 56 FALLBACK_PATHS['win7'] = ['win7'] + FALLBACK_PATHS['win10'] |
57 FALLBACK_PATHS['xp'] = ['win-xp'] + FALLBACK_PATHS['win7'] | |
58 | 57 |
59 DEFAULT_BUILD_DIRECTORIES = ('build', 'out') | 58 DEFAULT_BUILD_DIRECTORIES = ('build', 'out') |
60 | 59 |
61 BUILD_REQUIREMENTS_URL = 'http://www.chromium.org/developers/how-tos/build-i
nstructions-windows' | 60 BUILD_REQUIREMENTS_URL = 'http://www.chromium.org/developers/how-tos/build-i
nstructions-windows' |
62 | 61 |
63 @classmethod | 62 @classmethod |
64 def determine_full_port_name(cls, host, options, port_name): | 63 def determine_full_port_name(cls, host, options, port_name): |
65 if port_name.endswith('win'): | 64 if port_name.endswith('win'): |
66 assert host.platform.is_win() | 65 assert host.platform.is_win() |
67 # We don't maintain separate baselines for vista, so we pretend it i
s win7. | 66 # We don't maintain separate baselines for vista, so we pretend it i
s win7. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 return result | 241 return result |
243 | 242 |
244 def look_for_new_crash_logs(self, crashed_processes, start_time): | 243 def look_for_new_crash_logs(self, crashed_processes, start_time): |
245 if self.get_option('disable_breakpad'): | 244 if self.get_option('disable_breakpad'): |
246 return None | 245 return None |
247 return self._dump_reader.look_for_new_crash_logs(crashed_processes, star
t_time) | 246 return self._dump_reader.look_for_new_crash_logs(crashed_processes, star
t_time) |
248 | 247 |
249 def clobber_old_port_specific_results(self): | 248 def clobber_old_port_specific_results(self): |
250 if not self.get_option('disable_breakpad'): | 249 if not self.get_option('disable_breakpad'): |
251 self._dump_reader.clobber_old_results() | 250 self._dump_reader.clobber_old_results() |
OLD | NEW |