• Home
  • Raw
  • Download

Lines Matching refs:self

36   def __init__(self):  argument
37 test_suite.AbstractTestSuite.__init__(self)
38 self._package_name = None
39 self._runner_name = self.DEFAULT_RUNNER
40 self._class_name = None
41 self._target_name = None
42 self._java_package = None
44 def GetPackageName(self): argument
45 return self._package_name
47 def SetPackageName(self, package_name): argument
48 self._package_name = package_name
49 return self
51 def GetRunnerName(self): argument
52 return self._runner_name
54 def SetRunnerName(self, runner_name): argument
55 self._runner_name = runner_name
56 return self
58 def GetClassName(self): argument
59 return self._class_name
61 def SetClassName(self, class_name): argument
62 self._class_name = class_name
63 return self
65 def GetJavaPackageFilter(self): argument
66 return self._java_package
68 def SetJavaPackageFilter(self, java_package_name): argument
70 self._java_package = java_package_name
71 return self
73 def GetTargetName(self): argument
80 return self._target_name
82 def SetTargetName(self, target_name): argument
83 self._target_name = target_name
84 return self
86 def GetBuildDependencies(self, options): argument
91 def Run(self, options, adb): argument
104 test_class = self.GetClassName()
108 test_class = self.GetPackageName() + test_class
112 test_package = self.GetJavaPackageFilter()
138 package_name=self.GetPackageName(),
139 runner_name=self.GetRunnerName(),
147 elif self.GetTargetName():
148 coverage_target = coverage_gen.GetCoverageTarget(self.GetTargetName())
149 self._CheckInstrumentationInstalled(adb)
154 package_name=self.GetPackageName(),
155 runner_name=self.GetRunnerName(),
161 self._PrintTestResults(test_results)
168 self.GetName(), coverage_target, device_coverage_path,
174 self._CheckInstrumentationInstalled(adb)
175 adb.StartInstrumentationNoResults(package_name=self.GetPackageName(),
176 runner_name=self.GetRunnerName(),
182 def _CheckInstrumentationInstalled(self, adb): argument
183 if not adb.IsInstrumentationInstalled(self.GetPackageName(),
184 self.GetRunnerName()):
187 (self.GetPackageName(), self.GetRunnerName()))
190 def _PrintTestResults(self, test_results): argument
226 def __init__(self, test_root_path, build_path): argument
227 test_suite.AbstractTestFactory.__init__(self, test_root_path,
230 def CreateTests(self, sub_tests_path=None): argument
242 if self._IsJavaFile(sub_tests_path):
243 class_name_arg = self._GetClassNameFromFile(sub_tests_path)
245 elif self._IsJavaPackage(sub_tests_path):
246 java_package_name = self._GetPackageNameFromDir(sub_tests_path)
250 self.GetTestsRootPath())
255 self.GetBuildPath()))
260 (self.GetBuildPath(),
271 suite.SetBuildPath(self.GetBuildPath())
282 self.GetBuildPath()))
285 def _IsJavaFile(self, path): argument
287 return os.path.isfile(path) and self._IsJavaFileName(path)
289 def _IsJavaFileName(self, filename): argument
293 def _IsJavaPackage(self, path): argument
308 if self._IsJavaFileName(file_name):
312 def _GetClassNameFromFile(self, java_file_path): argument
321 package_name = self._GetPackageNameFromFile(java_file_path)
328 def _GetPackageNameFromDir(self, path): argument
341 if self._IsJavaFileName(filename):
342 return self._GetPackageNameFromFile(os.path.join(path, filename))
344 def _GetPackageNameFromFile(self, java_file_path): argument