commit | 212975b9dbb3c164e11732b98266eb7361e27ac5 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Fri Oct 21 17:57:42 2011 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Fri Oct 21 18:11:33 2011 -0700 |
tree | dcff4169c57d8e115cf6b6513c784c2717a08945 | |
parent | 7cbec840fdba0cf056754585a4d9f531c05ae2d9 [diff] |
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