History log of /packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/TestEventListener.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
988d8a354b00dce7e24deee187c08a4591956ac9 27-Sep-2016 Steve McKay <smckay@google.com> Move launch logic into ActionHandlers.

Add test.
Add RootsAccess interface to RootsCache (to faciliate testing).
Create a new TestEnv class that:
* bootstaps basic data and dependencies
* installs test executor so async tasks can be executed predictably.
* instruments main thread to ensure AsyncTasks return results
before we continue to make asserts.
Add new Lookup interface to provide improved semantics over j.u.f.Function.
Inject access to Provider specific Executors by way of Lookup.

Change-Id: I0fc71897a4cc40d26c5fa3ae3bb88bad7dbdcf5c
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/TestEventListener.java
990f76ea83a249cd8fc3c797e40626b94cd7945c 16-Sep-2016 Steve McKay <smckay@google.com> Lifetime of FragmentTuners scoped to activity.

Add support for resetting with new state from directory fragment.
Update Model to use an EventListener.
Eliminate documentPick handling from base activity and directory fragment...
Plum document picking directly from UserInputHandler to FragmentTuner instances.
Add new EventHandler internface (returns void, more semantic meaning that Consumer<T>).
Replace ModelUpdateListener interface with EventHandler.
Make DocumentAdapters return EventHandler<Model.Update> instead of
implementing ModelUpdateListener.
Move Activity specific FragmentTuner impls along side respective activities.

Change-Id: Ia6a5ab00ede685f7418773ed865d8c51e4125330
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/TestEventListener.java