commit | 845da84a53856e31ac72dfe7d7983e5cb6560617 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Fri Oct 21 17:57:42 2011 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Tue Oct 25 10:42:16 2011 -0700 |
tree | 94b7af8ab4c8d4e49525a0a2a3f7970bd24f535c | |
parent | 679acd3308fb51ba24f247798a610da7e681a6c5 [diff] |
DO NOT MERGE: Fix test crash in ContactsProvider2.initialize(). Seems like Secure.getLong() (and other methods) internally tries to get the Settings provider from the passed context when it's called first time, and it crases in tests because our mock context doesn't have it. Let's just call it with an actual contxext when tests start so it'll initialize the settings provider correctly. Bug 5499268 Change-Id: I863862ead2078715621cb71b1cf15f0dd94c0feb