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..6a44a097512b8539c7598f663dc414e703477d7f |
--- /dev/null |
+++ b/build/android/pylib/uirobot/uirobot_test_instance.py |
@@ -0,0 +1,56 @@ |
+# 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, options): |
+ """Constructor. |
+ |
+ Args: |
+ options: Command line options. |
+ """ |
+ super(UirobotTestInstance, self).__init__() |
+ self._apk_under_test = os.path.join( |
+ constants.GetOutDirectory(), options.apk_under_test) |
+ self._minutes = options.minutes |
+ |
+ #override |
+ def TestType(self): |
+ """Returns type of test.""" |
+ return 'uirobot' |
+ |
+ #override |
+ def SetUp(self): |
+ """Setup for test.""" |
jbudorick
2014/12/03 22:46:10
nit: Setup -> Set up
rnephew (Reviews Here)
2014/12/03 23:49:26
Done.
|
+ pass |
+ |
+ #override |
+ def TearDown(self): |
+ """Teardown for test.""" |
jbudorick
2014/12/03 22:46:10
nit: Teardown -> Tear down
rnephew (Reviews Here)
2014/12/03 23:49:26
Done.
|
+ pass |
+ |
+ @property |
+ def apk(self): |
+ """Returns the name of the test to look for.""" |
+ return 'uirobot' |
+ |
+ @property |
+ def apk_under_test(self): |
+ """Returns the app to run the test on.""" |
+ return self._apk_under_test |
+ |
+ @property |
+ def suite(self): |
+ """Returns the test suite, none for uirobot.""" |
+ return None |
+ |
+ @property |
+ def minutes(self): |
+ """Returns the number of minutes to run the uirobot for.""" |
+ return self._minutes |