OSDN Git Service

Initial integration test for BugReportReceiver.
authorFelipe Leme <felipeal@google.com>
Wed, 18 Nov 2015 01:37:53 +0000 (17:37 -0800)
committerFelipe Leme <felipeal@google.com>
Fri, 20 Nov 2015 20:00:17 +0000 (12:00 -0800)
commite53e85f6051d20cbd477bc25d446a41996411fab
treee007334a9b891f0a22c77b25c25904abb54232c9
parent12262af418f139e189b09b5b1e8a775d41d42e8e
Initial integration test for BugReportReceiver.

These tests rely in the UI Automator to interact with the UI and
follow the workflow below:

 * creates the bug report files
 * generates the BUGREPORT_FINISHED intent
 * emulate user actions to share the intent with a custom activity
 * asserts the extras received by the custom activity

It still have some limitations, like requiring the phone to be unlocked
and having the bugreport warning already checked, and those will be
addressed in future CLs.

BUG: 25752530
Change-Id: I01d7fad9f94daf156b728cbb9ef228bbfa6ee0f5
packages/Shell/Android.mk
packages/Shell/AndroidManifest.xml
packages/Shell/src/com/android/shell/BugreportReceiver.java
packages/Shell/tests/Android.mk [new file with mode: 0644]
packages/Shell/tests/AndroidManifest.xml [new file with mode: 0644]
packages/Shell/tests/src/com/android/shell/ActionSendMultipleConsumerActivity.java [new file with mode: 0644]
packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java [new file with mode: 0644]
packages/Shell/tests/src/com/android/shell/UiBot.java [new file with mode: 0644]