summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnthony Lee <anthonylee@google.com>2014-06-24 15:14:06 -0700
committerAnthony Lee <anthonylee@google.com>2014-06-24 15:24:47 -0700
commitff52eef8e691645e657f02a21c9d51968c2bdcfd (patch)
tree313ac0835caf499e0bc798fbca052a9d58fede5e /tests
parent5bcb36eb10c896c07b873fcbbab2610cfca58e5f (diff)
downloadandroid_packages_apps_Email-ff52eef8e691645e657f02a21c9d51968c2bdcfd.tar.gz
android_packages_apps_Email-ff52eef8e691645e657f02a21c9d51968c2bdcfd.tar.bz2
android_packages_apps_Email-ff52eef8e691645e657f02a21c9d51968c2bdcfd.zip
Revamp logging & remove the threading around downloads.
There is no need to launch a new AsyncTask around adding an attachment to the queue of downloads. We can restore the attachment in the worker thread of AttachmentService instead. Also reworked the logging so we can trace the flow of the AttachmentService if we need to debug again in the future. Change-Id: I368ebb4322bc0af0f4cadedf102959d621e5ee80
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/email/service/AttachmentServiceTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/email/service/AttachmentServiceTests.java b/tests/src/com/android/email/service/AttachmentServiceTests.java
index 7ae06bb70..2794dafe5 100644
--- a/tests/src/com/android/email/service/AttachmentServiceTests.java
+++ b/tests/src/com/android/email/service/AttachmentServiceTests.java
@@ -391,7 +391,7 @@ public class AttachmentServiceTests extends TestCase {
for (int i = 0; i < dq.getSize(); i++){
final AttachmentService.DownloadRequest returnRequest = dq.getNextRequest();
assertNotNull(returnRequest);
- final long requestTime = returnRequest.mTime;
+ final long requestTime = returnRequest.mCreatedTime;
// The time should be going up.
assertTrue(requestTime >= lastTime);
lastTime = requestTime;