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

Unified Diff: build/mobile/ios/pylib/remote/device/remote_device_uirobot_run.py

Issue 840393003: Add support for ios_uirobot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bling -> ios Created 5 years, 11 months 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
Index: build/mobile/ios/pylib/remote/device/remote_device_uirobot_run.py
diff --git a/build/android/pylib/remote/device/remote_device_uirobot_run.py b/build/mobile/ios/pylib/remote/device/remote_device_uirobot_run.py
similarity index 92%
copy from build/android/pylib/remote/device/remote_device_uirobot_run.py
copy to build/mobile/ios/pylib/remote/device/remote_device_uirobot_run.py
index 3aee3433077a95b7531a010b1175a02cbda3ada6..a96c1172bffe6804f2e3ea8b9889facb0cae668b 100644
--- a/build/android/pylib/remote/device/remote_device_uirobot_run.py
+++ b/build/mobile/ios/pylib/remote/device/remote_device_uirobot_run.py
@@ -8,7 +8,12 @@ import logging
import os
import sys
+
from pylib import constants
+
+sys.path.append(os.path.join(
+ constants.DIR_SOURCE_ROOT, 'build', 'android', 'pylib'))
+
from pylib.base import base_test_result
from pylib.remote.device import appurify_sanitized
from pylib.remote.device import remote_device_test_run
@@ -18,7 +23,7 @@ from pylib.remote.device import remote_device_helper
class RemoteDeviceUirobotRun(remote_device_test_run.RemoteDeviceTestRun):
jbudorick 2015/01/09 22:06:50 We have to be able to use the same object for both
rnephew (Wrong account) 2015/01/09 23:35:37 Done.
"""Run uirobot tests on a remote device."""
- DEFAULT_RUNNER_TYPE = 'android_robot'
+ DEFAULT_RUNNER_TYPE = 'ios_robot'
def __init__(self, env, test_instance):
"""Constructor.
@@ -37,7 +42,7 @@ class RemoteDeviceUirobotRun(remote_device_test_run.RemoteDeviceTestRun):
def _TriggerSetUp(self):
"""Set up the triggering of a test run."""
logging.info('Triggering test run.')
- self._app_id = self._UploadAppToDevice(self._test_instance.apk_under_test)
+ self._app_id = self._UploadAppToDevice(self._test_instance.app_under_test)
if not self._env.runner_type:
runner_type = self.DEFAULT_RUNNER_TYPE
logging.info('Using default runner type: %s', self.DEFAULT_RUNNER_TYPE)

Powered by Google App Engine
This is Rietveld 408576698