OSDN Git Service

Added annotation for the newly created test's size.
authorNicolas Catania <niko@google.com>
Fri, 25 Sep 2009 00:30:27 +0000 (17:30 -0700)
committerNicolas Catania <niko@google.com>
Mon, 28 Sep 2009 01:42:30 +0000 (18:42 -0700)
Made it a medium test (3 secs to run + in mem sql provider + activity)

tests/src/com/android/contacts/RecentCallsListActivityTests.java

index 86bd338..2cdd8d7 100644 (file)
@@ -25,6 +25,7 @@ import android.graphics.drawable.Drawable;
 import android.os.Bundle;
 import android.provider.CallLog.Calls;
 import android.test.ActivityInstrumentationTestCase2;
+import android.test.suitebuilder.annotation.MediumTest;
 import android.util.Log;
 import android.view.View;
 import android.widget.FrameLayout;
@@ -42,10 +43,12 @@ import java.util.Random;
  *
  *   runtest contacts
  * or
- *   adb shell am instrument -w com.android.contacts.tests/android.test.InstrumentationTestRunner
+ *   adb shell am instrument \
+ *     -w com.android.contacts.tests/android.test.InstrumentationTestRunner
  */
 
-public class RecentCallsListActivityTests extends ActivityInstrumentationTestCase2<RecentCallsListActivity> {
+public class RecentCallsListActivityTests
+        extends ActivityInstrumentationTestCase2<RecentCallsListActivity> {
     static private final String TAG = "RecentCallsListActivityTests";
     static private final String[] CALL_LOG_PROJECTION = new String[] {
             Calls._ID,
@@ -108,6 +111,7 @@ public class RecentCallsListActivityTests extends ActivityInstrumentationTestCas
      * Use 2 passes, one where new views are created and one where
      * half of the total views are updated and the other half created.
      */
+    @MediumTest
     public void testCallViewIsNotVisibleForPrivateAndUnknownNumbers() {
         final int SIZE = 100;
         mList = new View[SIZE];