am fe75cef7: Merge change 23315 into eclair

Merge commit 'fe75cef7c71bb4d26a0a8bdd4ea8b1a85df2368b'

* commit 'fe75cef7c71bb4d26a0a8bdd4ea8b1a85df2368b':
  Fix 2085862; add email address to test Account
This commit is contained in:
Marc Blank 2009-08-31 22:33:20 -07:00 committed by Android Git Automerger
commit 8102b7bad0

View File

@ -149,6 +149,8 @@ public class AccountSettingsTests extends ActivityInstrumentationTestCase2<Accou
private Intent getTestIntent(String name, String storeUri, String senderUri) { private Intent getTestIntent(String name, String storeUri, String senderUri) {
EmailContent.Account mAccount = new EmailContent.Account(); EmailContent.Account mAccount = new EmailContent.Account();
mAccount.setSenderName(name); mAccount.setSenderName(name);
// For EAS, at least, email address is required
mAccount.mEmailAddress = "user@server.com";
mAccount.setStoreUri(mContext, storeUri); mAccount.setStoreUri(mContext, storeUri);
mAccount.setSenderUri(mContext, senderUri); mAccount.setSenderUri(mContext, senderUri);
mAccount.save(mContext); mAccount.save(mContext);