diff options
author | Brett Chabot <brettchabot@android.com> | 2010-06-10 18:29:57 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-06-10 18:29:57 -0700 |
commit | 2b3adc7737b5d265a750abbc5d554ba0b3402aa3 (patch) | |
tree | 0bb41772dfe0f5941b1c20f24fe979145cf58310 /ddms | |
parent | f4b66edd9700e664fd2ad0cc2aca59ccbb75d229 (diff) | |
parent | 39a775c02a5760723022104d494172d5e0f004e7 (diff) | |
download | sdk-2b3adc7737b5d265a750abbc5d554ba0b3402aa3.zip sdk-2b3adc7737b5d265a750abbc5d554ba0b3402aa3.tar.gz sdk-2b3adc7737b5d265a750abbc5d554ba0b3402aa3.tar.bz2 |
Merge "Add a 'removeInstrumentationArg' method to ddms testrunner."
Diffstat (limited to 'ddms')
-rw-r--r-- | ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/IRemoteAndroidTestRunner.java | 7 | ||||
-rw-r--r-- | ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/IRemoteAndroidTestRunner.java b/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/IRemoteAndroidTestRunner.java index b40f164..cd40527 100644 --- a/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/IRemoteAndroidTestRunner.java +++ b/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/IRemoteAndroidTestRunner.java @@ -135,6 +135,13 @@ public interface IRemoteAndroidTestRunner { public void addInstrumentationArg(String name, String value); /** + * Removes a previously added argument. + * + * @param name the name of the instrumentation bundle argument to remove + */ + public void removeInstrumentationArg(String name); + + /** * Adds a boolean argument to include in instrumentation command. * <p/> * @see RemoteAndroidTestRunner#addInstrumentationArg diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java b/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java index 0d22886..c0ae309 100644 --- a/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java +++ b/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java @@ -156,6 +156,16 @@ public class RemoteAndroidTestRunner implements IRemoteAndroidTestRunner { /** * {@inheritDoc} */ + public void removeInstrumentationArg(String name) { + if (name == null) { + throw new IllegalArgumentException("name argument cannot be null"); + } + mArgMap.remove(name); + } + + /** + * {@inheritDoc} + */ public void addBooleanArg(String name, boolean value) { addInstrumentationArg(name, Boolean.toString(value)); } |