From b78d168cc7f681bd9300c02c2ff2a64ffbe08950 Mon Sep 17 00:00:00 2001 From: Yu Shan Emily Lau Date: Tue, 31 Aug 2010 19:03:40 -0700 Subject: Turn on the camera unit tests. Change-Id: Ic8580ed3c047268b3a25a114c512030e01439f6a --- tests/src/com/android/camera/gallery/LruCacheUnitTests.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/src') diff --git a/tests/src/com/android/camera/gallery/LruCacheUnitTests.java b/tests/src/com/android/camera/gallery/LruCacheUnitTests.java index 003fdd7..c437553 100644 --- a/tests/src/com/android/camera/gallery/LruCacheUnitTests.java +++ b/tests/src/com/android/camera/gallery/LruCacheUnitTests.java @@ -1,10 +1,12 @@ package com.android.camera.gallery; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import android.util.Log; public class LruCacheUnitTests extends AndroidTestCase { + @SmallTest public void testPut() { LruCache cache = new LruCache(2); Integer key = Integer.valueOf(1); @@ -13,6 +15,7 @@ public class LruCacheUnitTests extends AndroidTestCase { assertEquals(value, cache.get(key)); } + @SmallTest public void testTracingInUsedObject() { LruCache cache = new LruCache(2); Integer key = Integer.valueOf(1); @@ -25,6 +28,7 @@ public class LruCacheUnitTests extends AndroidTestCase { assertEquals(value, cache.get(key)); } + @SmallTest public void testLruAlgorithm() { LruCache cache = new LruCache(2); cache.put(0, new Integer(0)); -- cgit v1.1