History log of /packages/apps/Contacts/src/com/android/contacts/interactions/TestLoaderManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Global import order fix.

Changed import order to be in accordance with style guide:
http://source.android.com/source/code-style.html#order-import-statements

Static imports will be placed at the top since most existing files used that
convention. It is also a style that can be handled by both eclipse and intellij.

Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
/packages/apps/Contacts/src/com/android/contacts/interactions/TestLoaderManager.java
37a2684d1e47f6d78d757c437a187548f242ee13 27-Jun-2011 Flavio Lerda <flerda@google.com> Fixes tests on userdebug builds.

A number of tests are currently failing on userdebug builds because they
refer to methods that are used only in tests and proguard striped these
methods when building the application APK.

This change adds the VisibleForTesting annotation to all such methods.

Bug: 4901489
Bug: 4902483
Change-Id: Ic7c51ef5b77f4f2d2af39cdafbf8e2e37260644b
/packages/apps/Contacts/src/com/android/contacts/interactions/TestLoaderManager.java
34ce5e98f78b46b858d8afd450d1153c1d985426 06-Jun-2011 Flavio Lerda <flerda@google.com> Introduces a TestLoaderManager to test loaders.

Currently, the ContactDeletionInterationTest are flaky because waiting
for one of the loader to complete will fail if the loader was completed
before we start waiting.

Since this happens asynchronously and we do not information of which
loaders have completed, there is not an easy way to know whether the
loader already completed or never started.

This change introduces a TestLoaderManager which is an implementation of
LoaderManager which delegates to another object, but keeps track of
which loaders have completed. This allows to correctly wait for Loaders
to complete, even if they might have completed before the call to
waitForLoaders takes place.

Change-Id: I5e3795e10fc9b3424b983cdef4ac32feed7dbf74
/packages/apps/Contacts/src/com/android/contacts/interactions/TestLoaderManager.java