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

Side by Side Diff: build/android/pylib/uirobot/uirobot_test_instance.py

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/remote/device/remote_device_test_run.py ('k') | build/common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import os 5 import os
6 6
7 from pylib import constants 7 from pylib import constants
8 from pylib.base import test_instance 8 from pylib.base import test_instance
9 from pylib.utils import apk_helper 9 from pylib.utils import apk_helper
10 10
11 class UirobotTestInstance(test_instance.TestInstance): 11 class UirobotTestInstance(test_instance.TestInstance):
12 12
13 def __init__(self, args): 13 def __init__(self, args):
14 """Constructor. 14 """Constructor.
15 15
16 Args: 16 Args:
17 args: Command line arguments. 17 args: Command line arguments.
18 """ 18 """
19 super(UirobotTestInstance, self).__init__() 19 super(UirobotTestInstance, self).__init__()
20 self._apk_under_test = os.path.join( 20 self._apk_under_test = os.path.join(
21 constants.GetOutDirectory(), args.apk_under_test) 21 constants.GetOutDirectory(), args.apk_under_test)
22 self._minutes = args.minutes 22 self._minutes = args.minutes
23 self._package_name = apk_helper.GetPackageName(self._apk_under_test) 23 self._package_name = apk_helper.GetPackageName(self._apk_under_test)
24 self._suite = 'Android Uirobot'
24 25
25 #override 26 #override
26 def TestType(self): 27 def TestType(self):
27 """Returns type of test.""" 28 """Returns type of test."""
28 return 'uirobot' 29 return 'uirobot'
29 30
30 #override 31 #override
31 def SetUp(self): 32 def SetUp(self):
32 """Setup for test.""" 33 """Setup for test."""
33 pass 34 pass
(...skipping 10 matching lines...) Expand all
44 45
45 @property 46 @property
46 def minutes(self): 47 def minutes(self):
47 """Returns the number of minutes to run the uirobot for.""" 48 """Returns the number of minutes to run the uirobot for."""
48 return self._minutes 49 return self._minutes
49 50
50 @property 51 @property
51 def package_name(self): 52 def package_name(self):
52 """Returns the name of the package in the APK.""" 53 """Returns the name of the package in the APK."""
53 return self._package_name 54 return self._package_name
55
56 @property
57 def suite(self):
58 return self._suite
OLDNEW
« no previous file with comments | « build/android/pylib/remote/device/remote_device_test_run.py ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698