Index: build/android/pylib/uirobot/uirobot_test_instance.py |
diff --git a/build/android/pylib/uirobot/uirobot_test_instance.py b/build/android/pylib/uirobot/uirobot_test_instance.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..93bef1aeb3139c82ec0639871fa5ffd5f4c3d5c8 |
--- /dev/null |
+++ b/build/android/pylib/uirobot/uirobot_test_instance.py |
@@ -0,0 +1,39 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import os |
+ |
+from pylib import constants |
+from pylib.base import test_instance |
+ |
+class UirobotTestInstance(test_instance.TestInstance): |
+ |
+ def __init__(self): |
+ super(UirobotTestInstance, self).__init__() |
+ self._apk_under_test = os.path.join( |
+ 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
|
+ |
+ #override |
+ def TestType(self): |
+ return 'uirobot' |
+ |
+ #override |
+ def SetUp(self): |
+ pass |
+ |
+ #override |
+ def TearDown(self): |
+ pass |
+ |
+ @property |
+ def apk(self): |
+ return 'uirobot' |
+ |
+ @property |
+ def apk_under_test(self): |
+ return self._apk_under_test |
+ |
+ @property |
+ def suite(self): |
+ return None |