diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-15 10:18:45 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-05-19 18:27:01 -0700 |
commit | 7c461dc3809ce0d4d969a7c9b6406a1c6e4a1495 (patch) | |
tree | e11bc555526959b27caf34d003a9a5ad5f015813 /tests/src/com | |
parent | 49efd91e50a11dc7bdef8382a0ceac01bc060f77 (diff) |
Add AsyncTaskUtil for call log actions.
+ Factors out async tasks from Call Detail activity, so that in the
near future it can be invoked from the call log directly.
+ Create listener interfaces for actions to execute after tasks have
been completed.
+ Should have no logical/behavioral changes.
Hopefully, this creates a more opaque interface for activities or
other classes to perform these actions as well.
Bug: 21170557
Change-Id: I43aea7e37600d3978e285f047cba7ce75ebb5787
Diffstat (limited to 'tests/src/com')
-rw-r--r-- | tests/src/com/android/dialer/CallDetailActivityTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/dialer/CallDetailActivityTest.java b/tests/src/com/android/dialer/CallDetailActivityTest.java index 15e90fcf6..aca8f2985 100644 --- a/tests/src/com/android/dialer/CallDetailActivityTest.java +++ b/tests/src/com/android/dialer/CallDetailActivityTest.java @@ -16,7 +16,7 @@ package com.android.dialer; -import static com.android.dialer.CallDetailActivity.Tasks.UPDATE_PHONE_CALL_DETAILS; +import static com.android.dialer.calllog.CallLogAsyncTaskUtil.Tasks.GET_CALL_DETAILS; import static com.android.dialer.voicemail.VoicemailPlaybackPresenter.Tasks.CHECK_FOR_CONTENT; import static com.android.dialer.voicemail.VoicemailPlaybackPresenter.Tasks.PREPARE_MEDIA_PLAYER; @@ -303,7 +303,7 @@ public class CallDetailActivityTest extends ActivityInstrumentationTestCase2<Cal // We have to run all tasks, not just one. // This is because it seems that we can have onResume, onPause, onResume during the course // of a single unit test. - mFakeAsyncTaskExecutor.runAllTasks(UPDATE_PHONE_CALL_DETAILS); + mFakeAsyncTaskExecutor.runAllTasks(GET_CALL_DETAILS); } private AssetManager getAssets() { |