Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4371e8da authored by Brett Chabot's avatar Brett Chabot Committed by Android Git Automerger
Browse files

am c1548e38: Merge "Add test annotations to frameworks common tests." into froyo

Merge commit 'c1548e3819ab4662e6b5f5455f95258b37dc7192' into froyo-plus-aosp

* commit 'c1548e3819ab4662e6b5f5455f95258b37dc7192':
  Add test annotations to frameworks common tests.
parents 95ec80ad c4a82edf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);