Lines Matching defs:mFuture
42 private AccountManagerFuture<Bundle> mFuture;
48 mFuture = mock(AccountManagerFuture.class);
55 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
56 when(mFuture.getResult()).thenThrow(new AuthenticatorException("sadness!"));
65 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
66 when(mFuture.getResult()).thenReturn(bundle);
67 when(mFuture.isDone()).thenReturn(true);
68 when(mFuture.isCancelled()).thenReturn(false);
75 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
76 when(mFuture.getResult()).thenReturn(bundle);
77 when(mFuture.isDone()).thenReturn(true);
78 when(mFuture.isCancelled()).thenReturn(false);
92 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
93 when(mFuture.getResult()).thenReturn(bundle);
94 when(mFuture.isDone()).thenReturn(true);
95 when(mFuture.isCancelled()).thenReturn(false);