summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-05-15 10:18:45 -0700
committerAndrew Lee <anwlee@google.com>2015-05-19 18:27:01 -0700
commit7c461dc3809ce0d4d969a7c9b6406a1c6e4a1495 (patch)
treee11bc555526959b27caf34d003a9a5ad5f015813 /tests
parent49efd91e50a11dc7bdef8382a0ceac01bc060f77 (diff)
downloadandroid_packages_apps_Dialer-7c461dc3809ce0d4d969a7c9b6406a1c6e4a1495.tar.gz
android_packages_apps_Dialer-7c461dc3809ce0d4d969a7c9b6406a1c6e4a1495.tar.bz2
android_packages_apps_Dialer-7c461dc3809ce0d4d969a7c9b6406a1c6e4a1495.zip
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')
-rw-r--r--tests/src/com/android/dialer/CallDetailActivityTest.java4
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() {