| Index: build/android/pylib/host_driven/test_info_collection.py
|
| diff --git a/build/android/pylib/host_driven/test_info_collection.py b/build/android/pylib/host_driven/test_info_collection.py
|
| index a857d3c1cdf2e63b92c3f62cda2d860f85517732..b0b76a9819881bca3fbe2e209372fd393ed2a747 100644
|
| --- a/build/android/pylib/host_driven/test_info_collection.py
|
| +++ b/build/android/pylib/host_driven/test_info_collection.py
|
| @@ -7,7 +7,7 @@
|
| import logging
|
| import os
|
|
|
| -import tests_annotations
|
| +from pylib.host_driven import tests_annotations
|
|
|
|
|
| class TestInfo(object):
|
| @@ -22,7 +22,8 @@ class TestInfo(object):
|
| self.set_up = set_up
|
| self.tear_down = tear_down
|
|
|
| - def _GetQualifiedName(self, runnable):
|
| + @staticmethod
|
| + def _GetQualifiedName(runnable):
|
| """Helper method to infer a runnable's name and module name.
|
|
|
| Many filters and lists presuppose a format of module_name.testMethodName.
|
| @@ -102,7 +103,8 @@ class TestInfoCollection(object):
|
|
|
| return available_tests
|
|
|
| - def _AnnotationIncludesTest(self, test_info, annotation_filter_list):
|
| + @staticmethod
|
| + def _AnnotationIncludesTest(test_info, annotation_filter_list):
|
| """Checks whether a given test represented by test_info matches annotation.
|
|
|
| Args:
|
| @@ -128,7 +130,8 @@ class TestInfoCollection(object):
|
| return True
|
| return False
|
|
|
| - def _NameFilterIncludesTest(self, test_info, name_filter):
|
| + @staticmethod
|
| + def _NameFilterIncludesTest(test_info, name_filter):
|
| """Checks whether a name filter matches a given test_info's method name.
|
|
|
| This is a case-sensitive, substring comparison: 'Foo' will match methods
|
|
|