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

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

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/uirobot/__init__.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import os
6
7 from pylib import constants
8 from pylib.base import test_instance
9
10 class UirobotTestInstance(test_instance.TestInstance):
11
12 def __init__(self, args):
13 """Constructor.
14
15 Args:
16 args: Command line arguments.
17 """
18 super(UirobotTestInstance, self).__init__()
19 self._apk_under_test = os.path.join(
20 constants.GetOutDirectory(), args.apk_under_test)
21 self._minutes = args.minutes
22
23 #override
24 def TestType(self):
25 """Returns type of test."""
26 return 'uirobot'
27
28 #override
29 def SetUp(self):
30 """Setup for test."""
31 pass
32
33 #override
34 def TearDown(self):
35 """Teardown for test."""
36 pass
37
38 @property
39 def apk_under_test(self):
40 """Returns the app to run the test on."""
41 return self._apk_under_test
42
43 @property
44 def suite(self):
45 """Returns the test suite, none for uirobot."""
46 return None
47
48 @property
49 def minutes(self):
50 """Returns the number of minutes to run the uirobot for."""
51 return self._minutes
OLDNEW
« no previous file with comments | « build/android/pylib/uirobot/__init__.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698