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

Side by Side Diff: build/android/pylib/junit/junit_test_instance.py

Issue 2767613002: Expose resources in Robolectric/JUnit tests. (Closed)
Patch Set: rebase! Created 3 years, 8 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 from pylib.base import test_instance 5 from pylib.base import test_instance
6 6
7 7
8 class JunitTestInstance(test_instance.TestInstance): 8 class JunitTestInstance(test_instance.TestInstance):
9 9
10 def __init__(self, args, _): 10 def __init__(self, args, _):
11 super(JunitTestInstance, self).__init__() 11 super(JunitTestInstance, self).__init__()
12 12
13 self._android_manifest_path = args.android_manifest_path
13 self._coverage_dir = args.coverage_dir 14 self._coverage_dir = args.coverage_dir
14 self._package_filter = args.package_filter 15 self._package_filter = args.package_filter
16 self._package_name = args.package_name
17 self._resource_zips = args.resource_zips
18 self._robolectric_runtime_deps_dir = args.robolectric_runtime_deps_dir
15 self._runner_filter = args.runner_filter 19 self._runner_filter = args.runner_filter
16 self._test_filter = args.test_filter 20 self._test_filter = args.test_filter
17 self._test_suite = args.test_suite 21 self._test_suite = args.test_suite
18 22
19 #override 23 #override
20 def TestType(self): 24 def TestType(self):
21 return 'junit' 25 return 'junit'
22 26
23 #override 27 #override
24 def SetUp(self): 28 def SetUp(self):
25 pass 29 pass
26 30
27 #override 31 #override
28 def TearDown(self): 32 def TearDown(self):
29 pass 33 pass
30 34
31 @property 35 @property
36 def android_manifest_path(self):
37 return self._android_manifest_path
38
39 @property
32 def coverage_dir(self): 40 def coverage_dir(self):
33 return self._coverage_dir 41 return self._coverage_dir
34 42
35 @property 43 @property
36 def package_filter(self): 44 def package_filter(self):
37 return self._package_filter 45 return self._package_filter
38 46
39 @property 47 @property
48 def package_name(self):
49 return self._package_name
50
51 @property
52 def resource_zips(self):
53 return self._resource_zips
54
55 @property
56 def robolectric_runtime_deps_dir(self):
57 return self._robolectric_runtime_deps_dir
58
59 @property
40 def runner_filter(self): 60 def runner_filter(self):
41 return self._runner_filter 61 return self._runner_filter
42 62
43 @property 63 @property
44 def test_filter(self): 64 def test_filter(self):
45 return self._test_filter 65 return self._test_filter
46 66
47 @property 67 @property
48 def suite(self): 68 def suite(self):
49 return self._test_suite 69 return self._test_suite
OLDNEW
« no previous file with comments | « build/android/gyp/write_build_config.py ('k') | build/android/pylib/local/machine/local_machine_junit_test_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698