| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 """Annotations for host-driven tests.""" | 5 """Annotations for host-driven tests.""" |
| 6 # pylint: disable=W0212 | |
| 7 | 6 |
| 8 import os | 7 import os |
| 9 | 8 |
| 10 | 9 |
| 11 class AnnotatedFunctions(object): | 10 class AnnotatedFunctions(object): |
| 12 """A container for annotated methods.""" | 11 """A container for annotated methods.""" |
| 13 _ANNOTATED = {} | 12 _ANNOTATED = {} |
| 14 | 13 |
| 15 @staticmethod | 14 @staticmethod |
| 16 def _AddFunction(annotation, function): | 15 def _AddFunction(annotation, function): |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 def DisabledTest(function): | 84 def DisabledTest(function): |
| 86 return AnnotatedFunctions._AddFunction('DisabledTest', function) | 85 return AnnotatedFunctions._AddFunction('DisabledTest', function) |
| 87 | 86 |
| 88 | 87 |
| 89 def Feature(feature_list): | 88 def Feature(feature_list): |
| 90 def _AddFeatures(function): | 89 def _AddFeatures(function): |
| 91 for feature in feature_list: | 90 for feature in feature_list: |
| 92 AnnotatedFunctions._AddFunction('Feature:%s' % feature, function) | 91 AnnotatedFunctions._AddFunction('Feature:%s' % feature, function) |
| 93 return AnnotatedFunctions._AddFunction('Feature', function) | 92 return AnnotatedFunctions._AddFunction('Feature', function) |
| 94 return _AddFeatures | 93 return _AddFeatures |
| OLD | NEW |