Skip to content

Commit f0e8717

Browse files
krutonandroid code review
authored andcommitted
Merge "Remove useless TestRunner"
2 parents 3754899 + 96ad6cb commit f0e8717

File tree

4 files changed

+13
-53
lines changed

4 files changed

+13
-53
lines changed

keystore/tests/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<uses-library android:name="android.test.runner" />
2323
</application>
2424

25-
<instrumentation android:name=".KeyStoreTestRunner"
25+
<instrumentation android:name="android.test.InstrumentationTestRunner"
2626
android:targetPackage="android.security.tests"
2727
android:label="KeyStore Tests">
2828
</instrumentation>

keystore/tests/src/android/security/KeyStoreTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package android.security.tests;
17+
package android.security;
1818

1919
import android.app.Activity;
2020
import android.security.KeyStore;
@@ -29,7 +29,11 @@
2929
*
3030
* Running the test suite:
3131
*
32-
* adb shell am instrument -w android.security.tests/.KeyStoreTestRunner
32+
* runtest keystore-unit
33+
*
34+
* Or this individual test case:
35+
*
36+
* runtest --path frameworks/base/keystore/tests/src/android/security/KeyStoreTest.java
3337
*/
3438
@MediumTest
3539
public class KeyStoreTest extends ActivityUnitTestCase<Activity> {

keystore/tests/src/android/security/KeyStoreTestRunner.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

keystore/tests/src/android/security/SystemKeyStoreTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package android.security.tests;
17+
package android.security;
1818

1919
import android.app.Activity;
2020
import android.security.SystemKeyStore;
@@ -26,7 +26,11 @@
2626
*
2727
* Running the test suite:
2828
*
29-
* adb shell am instrument -w android.security.tests/.KeyStoreTestRunner
29+
* runtest keystore-unit
30+
*
31+
* Or this individual test case:
32+
*
33+
* runtest --path frameworks/base/keystore/tests/src/android/security/SystemKeyStoreTest.java
3034
*/
3135
@MediumTest
3236
public class SystemKeyStoreTest extends ActivityUnitTestCase<Activity> {

0 commit comments

Comments
 (0)