MockContentResolver

Class Overview

MockContentResolver overrides Android's normal way of resolving providers by
authority. To have access to a provider based on its authority, users of
MockContentResolver first instantiate the provider and
use addProvider(String, ContentProvider). Resolution of an
authority occurs entirely within MockContentResolver.

Users can also set an authority's entry in the map to null, so that a provider is completely
mocked out.

Developer Guides

For more information about application testing, read the
Testing developer guide.

This method was deprecated
in API level 11.
Since multiple concurrent syncs are now supported you should use
getCurrentSyncs() to get the accurate list of current syncs.
This method returns the first item from the list of current syncs
or null if there are none.