OLD | NEW |
1 # Copyright (C) 2014 Google Inc. All rights reserved. | 1 # Copyright (C) 2014 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 | 74 |
75 class BrowserTestLinuxPort(BrowserTestPortOverrides, linux.LinuxPort): | 75 class BrowserTestLinuxPort(BrowserTestPortOverrides, linux.LinuxPort): |
76 pass | 76 pass |
77 | 77 |
78 | 78 |
79 class BrowserTestMacPort(BrowserTestPortOverrides, mac.MacPort): | 79 class BrowserTestMacPort(BrowserTestPortOverrides, mac.MacPort): |
80 def _path_to_driver(self, configuration=None): | 80 def _path_to_driver(self, configuration=None): |
81 return self._build_path_with_configuration(configuration, self.driver_na
me()) | 81 return self._build_path_with_configuration(configuration, self.driver_na
me()) |
82 | 82 |
| 83 def default_timeout_ms(self): |
| 84 timeout_ms = 20 * 1000 |
| 85 if self.get_option('configuration') == 'Debug': # pylint: disable=E1101 |
| 86 # Debug is usually 2x-3x slower than Release. |
| 87 return 3 * timeout_ms |
| 88 return timeout_ms |
| 89 |
83 | 90 |
84 class BrowserTestWinPort(BrowserTestPortOverrides, win.WinPort): | 91 class BrowserTestWinPort(BrowserTestPortOverrides, win.WinPort): |
85 def default_timeout_ms(self): | 92 def default_timeout_ms(self): |
86 timeout_ms = 20 * 1000 | 93 timeout_ms = 20 * 1000 |
87 if self.get_option('configuration') == 'Debug': # pylint: disable=E1101 | 94 if self.get_option('configuration') == 'Debug': # pylint: disable=E1101 |
88 # Debug is usually 2x-3x slower than Release. | 95 # Debug is usually 2x-3x slower than Release. |
89 return 3 * timeout_ms | 96 return 3 * timeout_ms |
90 return timeout_ms | 97 return timeout_ms |
OLD | NEW |