summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2010-08-31 19:03:40 -0700
committerYu Shan Emily Lau <yslau@google.com>2010-08-31 21:15:21 -0700
commitb78d168cc7f681bd9300c02c2ff2a64ffbe08950 (patch)
treee4c5fe890f3989b8600b83c473f80503d012ed58 /tests
parent7bf93fe43dccbe31cfa6fe859ae7f9f946d8e923 (diff)
downloadLegacyCamera-b78d168cc7f681bd9300c02c2ff2a64ffbe08950.zip
LegacyCamera-b78d168cc7f681bd9300c02c2ff2a64ffbe08950.tar.gz
LegacyCamera-b78d168cc7f681bd9300c02c2ff2a64ffbe08950.tar.bz2
Turn on the camera unit tests.
Change-Id: Ic8580ed3c047268b3a25a114c512030e01439f6a
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/camera/gallery/LruCacheUnitTests.java4
1 files changed, 4 insertions, 0 deletions
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<Integer, Integer> cache = new LruCache<Integer, Integer>(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<Integer, Integer> cache = new LruCache<Integer, Integer>(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<Integer, Integer> cache = new LruCache<Integer, Integer>(2);
cache.put(0, new Integer(0));