summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJuan Lang <juanlang@google.com>2017-05-04 11:40:50 -0700
committerJuan Lang <juanlang@google.com>2017-05-04 13:08:27 -0700
commitdf83424c06ae06bbf3360b9a9f0c3bc6ab2dce4d (patch)
tree9451dd36ffc221f518b1ed7ff280dcfa7c3b7f5a /tests
parent8c9c7a59a00d6975d860e5a172fcf834b1fb60b1 (diff)
downloadEmergencyInfo-df83424c06ae06bbf3360b9a9f0c3bc6ab2dce4d.tar.gz
Drop unused intent filter.
The feature this filter was intended to support, a promo for setting emergency contacts, was never implemented. Having a promo is still interesting, and will be implemented via a different mechanism. Test: Reran unit tests. Manually verified the app still runs. Change-Id: Ie03b3541cc3471a6ca9474589c065404b0c68e77
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/emergency/view/ViewInfoActivityTest.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/src/com/android/emergency/view/ViewInfoActivityTest.java b/tests/src/com/android/emergency/view/ViewInfoActivityTest.java
index 6877661d..3a0e6d74 100644
--- a/tests/src/com/android/emergency/view/ViewInfoActivityTest.java
+++ b/tests/src/com/android/emergency/view/ViewInfoActivityTest.java
@@ -196,24 +196,6 @@ public class ViewInfoActivityTest extends ActivityInstrumentationTestCase2<ViewI
editInfoActivity.finish();
}
- public void testCanGoToEditInfoActivityFromBroadcast() {
- String action = "android.emergency.EDIT_EMERGENCY_CONTACTS";
- Instrumentation.ActivityMonitor activityMonitor =
- getInstrumentation().addMonitor(new IntentFilter(action),
- null /* result */, false /* block */);
- getActivity().startActivity(new Intent(action));
-
- getInstrumentation().waitForIdleSync();
- assertThat(getInstrumentation().checkMonitorHit(activityMonitor, 1 /* minHits */)).isTrue();
-
- EditInfoActivity editInfoActivity = (EditInfoActivity)
- getInstrumentation().waitForMonitorWithTimeout(activityMonitor, 1000 /* timeOut */);
- assertThat(editInfoActivity).isNotNull();
- // The contacts tab index is 1
- assertThat(editInfoActivity.getSelectedTabPosition()).isEqualTo(1);
- editInfoActivity.finish();
- }
-
private void onPause() throws Throwable {
runTestOnUiThread(new Runnable() {
@Override