Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: build/android/pylib/host_driven/tests_annotations.py

Issue 159853010: [Android] Lint pylib/host_driven. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/pylib/host_driven/test_runner.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
6 7
7 import os 8 import os
8 9
9 10
10 class AnnotatedFunctions(object): 11 class AnnotatedFunctions(object):
11 """A container for annotated methods.""" 12 """A container for annotated methods."""
12 _ANNOTATED = {} 13 _ANNOTATED = {}
13 14
14 @staticmethod 15 @staticmethod
15 def _AddFunction(annotation, function): 16 def _AddFunction(annotation, function):
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 def DisabledTest(function): 85 def DisabledTest(function):
85 return AnnotatedFunctions._AddFunction('DisabledTest', function) 86 return AnnotatedFunctions._AddFunction('DisabledTest', function)
86 87
87 88
88 def Feature(feature_list): 89 def Feature(feature_list):
89 def _AddFeatures(function): 90 def _AddFeatures(function):
90 for feature in feature_list: 91 for feature in feature_list:
91 AnnotatedFunctions._AddFunction('Feature:%s' % feature, function) 92 AnnotatedFunctions._AddFunction('Feature:%s' % feature, function)
92 return AnnotatedFunctions._AddFunction('Feature', function) 93 return AnnotatedFunctions._AddFunction('Feature', function)
93 return _AddFeatures 94 return _AddFeatures
OLDNEW
« no previous file with comments | « build/android/pylib/host_driven/test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698