diff options
author | Yorke Lee <yorkelee@google.com> | 2015-10-01 17:16:43 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-10-06 10:54:40 -0700 |
commit | f44e517e0bb7e934bb1cac61c11e4b7e8ef80bbe (patch) | |
tree | 2d336e5419834e4b2f8778d5b265826ea881ceac /tests/src/com/android | |
parent | a7100cfcec8904b835fe14b3ccd367c94faa2ccd (diff) |
Actually launch onboarding flow if needed
Launch OnboardingActivity for exported activities
(DialtactsActivity, CallDetailsActivity) to ensure that
a) We prompt the user to make us the default dialer at least once
b) The user has granted us both the Phone and Contacts permissions
Bug: 24270592
Change-Id: I232314e42f5331a72c1a84be917d9d74c5813976
Diffstat (limited to 'tests/src/com/android')
-rw-r--r-- | tests/src/com/android/dialer/onboard/DefaultDialerOnboardScreenTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/dialer/onboard/DefaultDialerOnboardScreenTest.java b/tests/src/com/android/dialer/onboard/DefaultDialerOnboardScreenTest.java index f9724c14b..26e513f4b 100644 --- a/tests/src/com/android/dialer/onboard/DefaultDialerOnboardScreenTest.java +++ b/tests/src/com/android/dialer/onboard/DefaultDialerOnboardScreenTest.java @@ -36,17 +36,17 @@ public class DefaultDialerOnboardScreenTest extends AndroidTestCase { } public void testNeverRequestedForDefaultDialer_shouldShowScreen() { - when(mPermissionsChecker.previouslyRequestedDefaultDialer()).thenReturn(false); + when(mPermissionsChecker.hasAlreadyRequestedDefaultDialer()).thenReturn(false); assertTrue(mScreen.shouldShowScreen()); } public void testAlreadyAskedForDefaultDialer_shouldNotShowScreen() { - when(mPermissionsChecker.previouslyRequestedDefaultDialer()).thenReturn(true); + when(mPermissionsChecker.hasAlreadyRequestedDefaultDialer()).thenReturn(true); assertFalse(mScreen.shouldShowScreen()); } public void testAlreadySetAsDefaultDialer_shouldNotShowScreen() { - when(mPermissionsChecker.previouslyRequestedDefaultDialer()).thenReturn(false); + when(mPermissionsChecker.hasAlreadyRequestedDefaultDialer()).thenReturn(false); when(mPermissionsChecker.isDefaultOrSystemDialer()).thenReturn(true); assertFalse(mScreen.shouldShowScreen()); } |