OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Base class for linker-specific test cases. | 5 """Base class for linker-specific test cases. |
6 | 6 |
7 The custom dynamic linker can only be tested through a custom test case | 7 The custom dynamic linker can only be tested through a custom test case |
8 for various technical reasons: | 8 for various technical reasons: |
9 | 9 |
10 - It's an 'invisible feature', i.e. it doesn't expose a new API or | 10 - It's an 'invisible feature', i.e. it doesn't expose a new API or |
(...skipping 322 matching lines...) Loading... |
333 result_text = 'FAILED' | 333 result_text = 'FAILED' |
334 elif status == ResultType.TIMEOUT: | 334 elif status == ResultType.TIMEOUT: |
335 result_text = 'TIMEOUT' | 335 result_text = 'TIMEOUT' |
336 print '[ %*s ] %s' % (margin, result_text, self.tagged_name) | 336 print '[ %*s ] %s' % (margin, result_text, self.tagged_name) |
337 | 337 |
338 results = base_test_result.TestRunResults() | 338 results = base_test_result.TestRunResults() |
339 results.AddResult( | 339 results.AddResult( |
340 base_test_result.BaseTestResult( | 340 base_test_result.BaseTestResult( |
341 self.tagged_name, | 341 self.tagged_name, |
342 status, | 342 status, |
343 logs)) | 343 log=logs)) |
344 | 344 |
345 return results | 345 return results |
346 | 346 |
347 def __str__(self): | 347 def __str__(self): |
348 return self.tagged_name | 348 return self.tagged_name |
349 | 349 |
350 def __repr__(self): | 350 def __repr__(self): |
351 return self.tagged_name | 351 return self.tagged_name |
352 | 352 |
353 | 353 |
(...skipping 179 matching lines...) Loading... |
533 # Note that this behaviour doesn't seem to happen when starting an | 533 # Note that this behaviour doesn't seem to happen when starting an |
534 # application 'normally', i.e. when using the application launcher to | 534 # application 'normally', i.e. when using the application launcher to |
535 # start the activity. | 535 # start the activity. |
536 logging.info('Ignoring system\'s low randomization of browser libraries' + | 536 logging.info('Ignoring system\'s low randomization of browser libraries' + |
537 ' for regular devices') | 537 ' for regular devices') |
538 | 538 |
539 if not renderer_status: | 539 if not renderer_status: |
540 return ResultType.FAIL, renderer_logs | 540 return ResultType.FAIL, renderer_logs |
541 | 541 |
542 return ResultType.PASS, logs | 542 return ResultType.PASS, logs |
OLD | NEW |