OSDN Git Service

Bug 2306842
authorPaul Westbrook <pwestbro@google.com>
Sat, 27 Feb 2010 02:21:15 +0000 (18:21 -0800)
committerPaul Westbrook <pwestbro@google.com>
Sat, 27 Feb 2010 02:24:29 +0000 (18:24 -0800)
commit69120a73d0f7a1862d51e0a95ebd5e507fee8cd2
tree32d52fcfaf9b039c80ee29a689101f5337dfc2a6
parent59dc9ecec6e4f53a1a2934b08c7f779d2b0a0d9a
Bug 2306842

Since MockAccountManager was passing null to the AccountManager
constructor, unit tests where the AccountManager attempts to call
the AccountManagerService were crashing.

Now the getAccountsByTypeAndFeatures and blockingGetAuthToken
(which are the calls that the Gmail unit tests call) call a small
stub

At some point, all of the other AccountManager calls should be stubbed
out
test-runner/src/android/test/IsolatedContext.java