Lines Matching refs:mMockContext
50 Context mMockContext;
64 mMockContext = getMockContext();
116 // Note that we can't use mMockContext for AccountManager interactions, as it isn't a fully
131 assertEquals(3, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null));
146 ContentResolver resolver = mMockContext.getContentResolver();
148 makeExchangeServiceAccountList(), accountManagerAccounts, mMockContext);
151 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null));
157 assertEquals(1, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null));
161 makeExchangeServiceAccountList(), accountManagerAccounts, mMockContext);
240 Account easAccount = ProviderTestUtils.setupAccount("account1", false, mMockContext);
244 easAccount.save(mMockContext);
245 Account imapAccount = ProviderTestUtils.setupAccount("account2", false, mMockContext);
249 imapAccount.save(mMockContext);
250 Account pop3Account = ProviderTestUtils.setupAccount("account3", false, mMockContext);
254 pop3Account.save(mMockContext);
258 mailService.mController = new TestController(mMockContext, getContext());
260 mailService.setupSyncReportsLocked(MailService.SYNC_REPORTS_RESET, mMockContext);
279 easAccount.update(mMockContext, cv);
281 mailService.setupSyncReportsLocked(easAccount.mId, mMockContext);
299 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext);
304 account1.save(mMockContext);
306 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext);
310 account2.save(mMockContext);
312 Account account3 = ProviderTestUtils.setupAccount("account3", false, mMockContext);
316 account3.save(mMockContext);
320 mailService.mController = new TestController(mMockContext, getContext());
322 mailService.setupSyncReportsLocked(MailService.SYNC_REPORTS_RESET, mMockContext);