diff options
author | Yu Shan Emily Lau <yslau@google.com> | 2010-08-31 19:03:40 -0700 |
---|---|---|
committer | Yu Shan Emily Lau <yslau@google.com> | 2010-08-31 21:15:21 -0700 |
commit | b78d168cc7f681bd9300c02c2ff2a64ffbe08950 (patch) | |
tree | e4c5fe890f3989b8600b83c473f80503d012ed58 /tests/src | |
parent | 7bf93fe43dccbe31cfa6fe859ae7f9f946d8e923 (diff) | |
download | LegacyCamera-b78d168cc7f681bd9300c02c2ff2a64ffbe08950.zip LegacyCamera-b78d168cc7f681bd9300c02c2ff2a64ffbe08950.tar.gz LegacyCamera-b78d168cc7f681bd9300c02c2ff2a64ffbe08950.tar.bz2 |
Turn on the camera unit tests.
Change-Id: Ic8580ed3c047268b3a25a114c512030e01439f6a
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/camera/gallery/LruCacheUnitTests.java | 4 |
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)); |