• 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(),
162 self._PrintTestResults(test_results)
169 self.GetName(), coverage_target, device_coverage_path,
175 self._CheckInstrumentationInstalled(adb)
177 package_name=self.GetPackageName(),
178 runner_name=self.GetRunnerName(),
184 def _CheckInstrumentationInstalled(self, adb): argument
185 if not adb.IsInstrumentationInstalled(self.GetPackageName(),
186 self.GetRunnerName()):
189 (self.GetPackageName(), self.GetRunnerName()))
192 def _PrintTestResults(self, test_results): argument
228 def __init__(self, test_root_path, build_path): argument
229 test_suite.AbstractTestFactory.__init__(self, test_root_path,
232 def CreateTests(self, sub_tests_path=None): argument
244 if self._IsJavaFile(sub_tests_path):
245 class_name_arg = self._GetClassNameFromFile(sub_tests_path)
247 elif self._IsJavaPackage(sub_tests_path):
248 java_package_name = self._GetPackageNameFromDir(sub_tests_path)
252 self.GetTestsRootPath())
257 self.GetBuildPath()))
262 (self.GetBuildPath(),
273 suite.SetBuildPath(self.GetBuildPath())
284 self.GetBuildPath()))
287 def _IsJavaFile(self, path): argument
289 return os.path.isfile(path) and self._IsJavaFileName(path)
291 def _IsJavaFileName(self, filename): argument
295 def _IsJavaPackage(self, path): argument
310 if self._IsJavaFileName(file_name):
314 def _GetClassNameFromFile(self, java_file_path): argument
323 package_name = self._GetPackageNameFromFile(java_file_path)
330 def _GetPackageNameFromDir(self, path): argument
343 if self._IsJavaFileName(filename):
344 return self._GetPackageNameFromFile(os.path.join(path, filename))
346 def _GetPackageNameFromFile(self, java_file_path): argument