Home
last modified time | relevance | path

Searched refs:requestIntent (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowActivity.java395 public void receiveResult(Intent requestIntent, int resultCode, Intent resultIntent) { in receiveResult() argument
396 Integer requestCode = intentRequestCodeMap.get(requestIntent); in receiveResult()
398 …throw new RuntimeException("No intent matches " + requestIntent + " among " + intentRequestCodeMap… in receiveResult()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DActivityTest.java92 Intent requestIntent = new Intent().setType("video/*"); in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException() local
94 shadowOf(activity).receiveResult(requestIntent, Activity.RESULT_OK, in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException()
98 assertThat(e.getMessage(), startsWith("No intent matches " + requestIntent)); in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException()