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

Unified Diff: build/android/pylib/android_commands.py

Issue 415463002: [Android] Configurable instrumentation test runner + test SDK levels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 923ebe7c3e9ca14909b148913e09a655c305039c..5fc2fbd0b001ba6d22e338f35371c255357fd24a 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -1802,30 +1802,6 @@ class AndroidCommands(object):
"""
self._util_wrapper = util_wrapper
- def RunInstrumentationTest(self, test, test_package, instr_args, timeout):
- """Runs a single instrumentation test.
-
- Args:
- test: Test class/method.
- test_package: Package name of test apk.
- instr_args: Extra key/value to pass to am instrument.
- timeout: Timeout time in seconds.
-
- Returns:
- An instance of am_instrument_parser.TestResult object.
- """
- instrumentation_path = ('%s/android.test.InstrumentationTestRunner' %
- test_package)
- args_with_filter = dict(instr_args)
- args_with_filter['class'] = test
- logging.info(args_with_filter)
- (raw_results, _) = self._adb.StartInstrumentation(
- instrumentation_path=instrumentation_path,
- instrumentation_args=args_with_filter,
- timeout_time=timeout)
- assert len(raw_results) == 1
- return raw_results[0]
-
def RunUIAutomatorTest(self, test, test_package, timeout):
"""Runs a single uiautomator test.

Powered by Google App Engine
This is Rietveld 408576698