diff options
author | Brett Chabot <brettchabot@android.com> | 2010-04-02 08:53:22 -0700 |
---|---|---|
committer | Brett Chabot <brettchabot@android.com> | 2010-04-02 08:53:22 -0700 |
commit | 680c9fa6c8303bf26d032a6d93e58650c361c41a (patch) | |
tree | aa58bd990d6c25e76e771f6b6633e518778216d3 /common | |
parent | d9c16c37ea28933973f32cb434f770226266b675 (diff) | |
download | frameworks_base-680c9fa6c8303bf26d032a6d93e58650c361c41a.zip frameworks_base-680c9fa6c8303bf26d032a6d93e58650c361c41a.tar.gz frameworks_base-680c9fa6c8303bf26d032a6d93e58650c361c41a.tar.bz2 |
Add test annotations to frameworks common tests.
Change-Id: Iaf5af2cbd49015ac8f1bf23a4d20f055ac9a000e
Diffstat (limited to 'common')
-rw-r--r-- | common/tests/src/com/android/common/OperationSchedulerTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/tests/src/com/android/common/OperationSchedulerTest.java b/common/tests/src/com/android/common/OperationSchedulerTest.java index f728eea..866d1a8 100644 --- a/common/tests/src/com/android/common/OperationSchedulerTest.java +++ b/common/tests/src/com/android/common/OperationSchedulerTest.java @@ -18,8 +18,11 @@ package com.android.common; import android.content.SharedPreferences; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.MediumTest; +import android.test.suitebuilder.annotation.SmallTest; public class OperationSchedulerTest extends AndroidTestCase { + @MediumTest public void testScheduler() throws Exception { String name = "OperationSchedulerTest.testScheduler"; SharedPreferences storage = getContext().getSharedPreferences(name, 0); @@ -112,6 +115,7 @@ public class OperationSchedulerTest extends AndroidTestCase { assertTrue(afterSuccess + 1000000 >= scheduler.getNextTimeMillis(options)); } + @SmallTest public void testParseOptions() throws Exception { OperationScheduler.Options options = new OperationScheduler.Options(); assertEquals( @@ -132,6 +136,7 @@ public class OperationSchedulerTest extends AndroidTestCase { OperationScheduler.parseOptions("", options).toString()); } + @SmallTest public void testMoratoriumWithHttpDate() throws Exception { String name = "OperationSchedulerTest.testMoratoriumWithHttpDate"; SharedPreferences storage = getContext().getSharedPreferences(name, 0); |