Chromium Code Reviews| OLD | NEW |
|---|---|
| (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): | |
| 13 super(UirobotTestInstance, self).__init__() | |
| 14 self._apk_under_test = os.path.join( | |
| 15 constants.GetOutDirectory(), 'apks', 'Chrome.apk') | |
|
jbudorick
2014/11/21 00:17:25
apk name shouldn't be hard-coded.
rnephew (Reviews Here)
2014/11/21 18:26:48
Is there somewhere in constants I can pull this fo
| |
| 16 | |
| 17 #override | |
| 18 def TestType(self): | |
| 19 return 'uirobot' | |
| 20 | |
| 21 #override | |
| 22 def SetUp(self): | |
| 23 pass | |
| 24 | |
| 25 #override | |
| 26 def TearDown(self): | |
| 27 pass | |
| 28 | |
| 29 @property | |
| 30 def apk(self): | |
| 31 return 'uirobot' | |
| 32 | |
| 33 @property | |
| 34 def apk_under_test(self): | |
| 35 return self._apk_under_test | |
| 36 | |
| 37 @property | |
| 38 def suite(self): | |
| 39 return None | |
| OLD | NEW |