robolectric/robolectric — pull request #1153 by jongerrish (2014-06-17 14:59:37+00:00)
Title: Add simple implementation of AccountManager.addAccount()

* Returns correct bundle values depending on presence of activity parameter
* Throws AuthenticatorException if no authenticator matches accountType parameter

As defined here: http://developer.android.com/reference/android/accounts/AccountManager.html#addAccount(java.lang.String, java.lang.String, java.lang.String[], android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback, android.os.Handler)

TODO: Should check permissions for http://developer.android.com/reference/android/Manifest.permission.html#MANAGE_ACCOUNTS