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

Unified Diff: build/android/pylib/uirobot/uirobot_test_instance.py

Issue 801283005: [Android] Fix remote device test run TestPackage() methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/remote/device/remote_device_uirobot_run.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index b129f89c1cac0a461fd371d59787061bd855bf8d..9eba0acb2aedd620fd9d2fa874f7dfaafd66f46e 100644
--- a/build/android/pylib/uirobot/uirobot_test_instance.py
+++ b/build/android/pylib/uirobot/uirobot_test_instance.py
@@ -6,6 +6,7 @@ import os
from pylib import constants
from pylib.base import test_instance
+from pylib.utils import apk_helper
class UirobotTestInstance(test_instance.TestInstance):
klundberg 2014/12/15 16:58:14 Sorry, I know I didn't review Randy's CL but shoul
@@ -19,6 +20,7 @@ class UirobotTestInstance(test_instance.TestInstance):
self._apk_under_test = os.path.join(
constants.GetOutDirectory(), args.apk_under_test)
self._minutes = args.minutes
+ self._package_name = apk_helper.GetPackageName(self._apk_under_test)
#override
def TestType(self):
@@ -41,11 +43,11 @@ class UirobotTestInstance(test_instance.TestInstance):
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
+
+ @property
+ def package_name(self):
+ """Returns the name of the package in the APK."""
+ return self._package_name
« no previous file with comments | « build/android/pylib/remote/device/remote_device_uirobot_run.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698