Home
last modified time | relevance | path

Searched refs:expectedIntent (Results 1 – 4 of 4) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
DStartedServiceMatcher.java17 private final Intent expectedIntent; field in StartedServiceMatcher
21 public StartedServiceMatcher(Intent expectedIntent) { in StartedServiceMatcher() argument
22 this.expectedIntent = expectedIntent; in StartedServiceMatcher()
36 expectedIntent.setAction(expectedAction); in StartedServiceMatcher()
47 if (expectedIntent == null) { in matchesSafely()
52 String expected = expectedIntent.toString(); in matchesSafely()
66 …boolean intentsMatch = shadowOf(expectedIntent).getIntentClass().equals(shadowIntent.getIntentClas… in matchesSafely()
72 Set<String> expectedKeys = shadowOf(expectedIntent).getExtras().keySet(); in matchesSafely()
DStartedMatcher.java14 private final Intent expectedIntent; field in StartedMatcher
18 public StartedMatcher(Intent expectedIntent) { in StartedMatcher() argument
19 this.expectedIntent = expectedIntent; in StartedMatcher()
33 expectedIntent.setAction(expectedAction); in StartedMatcher()
38 if (expectedIntent == null) { in matchesSafely()
43 String expected = expectedIntent.toString(); in matchesSafely()
55 boolean intentsMatch = shadowOf(expectedIntent).realIntentEquals(shadowIntent); in matchesSafely()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DPendingIntentTest.java28 Intent expectedIntent = new Intent(); in shouldGetIntentSender() local
29 PendingIntent service = PendingIntent.getService(null, 0, expectedIntent, 0); in shouldGetIntentSender()
32 assertThat(expectedIntent, equalTo(((TestIntentSender) intentSender).intent)); in shouldGetIntentSender()
DIntentTest.java369 Intent expectedIntent = new Intent(Intent.ACTION_CHOOSER); in createChooser_shouldWrapIntent() local
370 expectedIntent.putExtra(Intent.EXTRA_INTENT, originalIntent); in createChooser_shouldWrapIntent()
371 expectedIntent.putExtra(Intent.EXTRA_TITLE, "The title"); in createChooser_shouldWrapIntent()
372 assertEquals(expectedIntent, chooserIntent); in createChooser_shouldWrapIntent()