Add test annotations to frameworks common tests.

Change-Id: Iaf5af2cbd49015ac8f1bf23a4d20f055ac9a000e
This commit is contained in:
Brett Chabot 2010-04-02 08:53:22 -07:00
parent 8421672e2e
commit 49b35b5f9c

View File

@ -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);