From b4598f7d05d6afd01ddc7ea0bed71dda837d1deb Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 4 Feb 2013 15:25:24 -0800 Subject: [PATCH] Add unit tests tags Bug: 8131968 Change-Id: Ibca5a0d63a492134b8af401a62ca3a5748e003cf --- .../MoreKeysKeyboardBuilderFixedOrderTests.java | 2 ++ .../keyboard/MoreKeysKeyboardBuilderTests.java | 2 ++ .../inputmethod/keyboard/SpacebarTextTests.java | 2 ++ .../keyboard/internal/KeySpecParserCsvTests.java | 2 ++ .../keyboard/internal/KeySpecParserTests.java | 2 ++ .../internal/KeyboardStateMultiTouchTests.java | 3 +++ .../internal/KeyboardStateSingleTouchTests.java | 3 +++ .../internal/PointerTrackerQueueTests.java | 2 ++ .../inputmethod/latin/BlueUnderlineTests.java | 2 ++ .../inputmethod/latin/EditDistanceTests.java | 2 ++ .../inputmethod/latin/ForgettingCurveTests.java | 2 ++ .../inputmethod/latin/FusionDictionaryTests.java | 2 ++ .../android/inputmethod/latin/InputLogicTests.java | 3 +++ .../latin/InputLogicTestsNonEnglish.java | 3 +++ .../inputmethod/latin/InputPointersTests.java | 2 ++ .../android/inputmethod/latin/InputTestsBase.java | 4 ---- .../inputmethod/latin/PunctuationTests.java | 3 +++ .../inputmethod/latin/ResizableIntArrayTests.java | 2 ++ .../latin/RichInputConnectionTests.java | 2 ++ .../inputmethod/latin/StringUtilsTests.java | 2 ++ .../inputmethod/latin/SubtypeLocaleTests.java | 2 ++ .../latin/UserHistoryDictIOUtilsTests.java | 11 ++++++----- .../latin/UserHistoryDictionaryTests.java | 5 ++--- .../latin/makedict/BinaryDictIOTests.java | 12 +++++++----- .../latin/makedict/BinaryDictIOUtilsTests.java | 14 ++++++-------- .../spellcheck/AndroidSpellCheckerServiceTest.java | 4 ++-- .../research/MotionEventReaderTests.java | 2 ++ 27 files changed, 70 insertions(+), 27 deletions(-) diff --git a/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderFixedOrderTests.java b/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderFixedOrderTests.java index 2a244a772..49ef3a261 100644 --- a/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderFixedOrderTests.java +++ b/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderFixedOrderTests.java @@ -17,9 +17,11 @@ package com.android.inputmethod.keyboard; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import com.android.inputmethod.keyboard.MoreKeysKeyboard.MoreKeysKeyboardParams; +@SmallTest public class MoreKeysKeyboardBuilderFixedOrderTests extends AndroidTestCase { private static final int WIDTH = 10; private static final int HEIGHT = 10; diff --git a/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderTests.java b/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderTests.java index e6c76db85..93883dc5b 100644 --- a/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderTests.java +++ b/tests/src/com/android/inputmethod/keyboard/MoreKeysKeyboardBuilderTests.java @@ -17,9 +17,11 @@ package com.android.inputmethod.keyboard; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import com.android.inputmethod.keyboard.MoreKeysKeyboard.MoreKeysKeyboardParams; +@SmallTest public class MoreKeysKeyboardBuilderTests extends AndroidTestCase { private static final int WIDTH = 10; private static final int HEIGHT = 10; diff --git a/tests/src/com/android/inputmethod/keyboard/SpacebarTextTests.java b/tests/src/com/android/inputmethod/keyboard/SpacebarTextTests.java index 05b137635..d0426eb72 100644 --- a/tests/src/com/android/inputmethod/keyboard/SpacebarTextTests.java +++ b/tests/src/com/android/inputmethod/keyboard/SpacebarTextTests.java @@ -19,6 +19,7 @@ package com.android.inputmethod.keyboard; import android.content.Context; import android.content.res.Resources; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import android.view.inputmethod.InputMethodSubtype; import com.android.inputmethod.latin.AdditionalSubtype; @@ -31,6 +32,7 @@ import com.android.inputmethod.latin.LocaleUtils.RunInLocale; import java.util.ArrayList; import java.util.Locale; +@SmallTest public class SpacebarTextTests extends AndroidTestCase { // Locale to subtypes list. private final ArrayList mSubtypesList = CollectionUtils.newArrayList(); diff --git a/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserCsvTests.java b/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserCsvTests.java index 1346c00f4..cee62ca38 100644 --- a/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserCsvTests.java +++ b/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserCsvTests.java @@ -18,6 +18,7 @@ package com.android.inputmethod.keyboard.internal; import android.app.Instrumentation; import android.test.InstrumentationTestCase; +import android.test.suitebuilder.annotation.SmallTest; import com.android.inputmethod.latin.CollectionUtils; @@ -26,6 +27,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Locale; +@SmallTest public class KeySpecParserCsvTests extends InstrumentationTestCase { private final KeyboardTextsSet mTextsSet = new KeyboardTextsSet(); diff --git a/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserTests.java b/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserTests.java index 5bba961bd..a5b61b370 100644 --- a/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserTests.java +++ b/tests/src/com/android/inputmethod/keyboard/internal/KeySpecParserTests.java @@ -21,12 +21,14 @@ import static com.android.inputmethod.latin.Constants.CODE_OUTPUT_TEXT; import static com.android.inputmethod.latin.Constants.CODE_UNSPECIFIED; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import com.android.inputmethod.latin.Constants; import java.util.Arrays; import java.util.Locale; +@SmallTest public class KeySpecParserTests extends AndroidTestCase { private final KeyboardCodesSet mCodesSet = new KeyboardCodesSet(); private final KeyboardTextsSet mTextsSet = new KeyboardTextsSet(); diff --git a/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateMultiTouchTests.java b/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateMultiTouchTests.java index 053bcb53a..5fbe6d4bf 100644 --- a/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateMultiTouchTests.java +++ b/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateMultiTouchTests.java @@ -16,6 +16,9 @@ package com.android.inputmethod.keyboard.internal; +import android.test.suitebuilder.annotation.SmallTest; + +@SmallTest public class KeyboardStateMultiTouchTests extends KeyboardStateTestsBase { // Chording input in alphabet. public void testChordingAlphabet() { diff --git a/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateSingleTouchTests.java b/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateSingleTouchTests.java index 74ff87977..637d47577 100644 --- a/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateSingleTouchTests.java +++ b/tests/src/com/android/inputmethod/keyboard/internal/KeyboardStateSingleTouchTests.java @@ -16,6 +16,9 @@ package com.android.inputmethod.keyboard.internal; +import android.test.suitebuilder.annotation.SmallTest; + +@SmallTest public class KeyboardStateSingleTouchTests extends KeyboardStateTestsBase { // Shift key in alphabet. public void testShiftAlphabet() { diff --git a/tests/src/com/android/inputmethod/keyboard/internal/PointerTrackerQueueTests.java b/tests/src/com/android/inputmethod/keyboard/internal/PointerTrackerQueueTests.java index 2c3e3a514..e7068afce 100644 --- a/tests/src/com/android/inputmethod/keyboard/internal/PointerTrackerQueueTests.java +++ b/tests/src/com/android/inputmethod/keyboard/internal/PointerTrackerQueueTests.java @@ -17,7 +17,9 @@ package com.android.inputmethod.keyboard.internal; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; +@SmallTest public class PointerTrackerQueueTests extends AndroidTestCase { public static class Element implements PointerTrackerQueue.Element { public static int sPhantomUpCount; diff --git a/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java b/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java index 6b4d52d62..594b5d6b2 100644 --- a/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java +++ b/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java @@ -16,9 +16,11 @@ package com.android.inputmethod.latin; +import android.test.suitebuilder.annotation.LargeTest; import android.text.style.SuggestionSpan; import android.text.style.UnderlineSpan; +@LargeTest public class BlueUnderlineTests extends InputTestsBase { public void testBlueUnderline() { diff --git a/tests/src/com/android/inputmethod/latin/EditDistanceTests.java b/tests/src/com/android/inputmethod/latin/EditDistanceTests.java index c053a49e5..0b7fcbbe8 100644 --- a/tests/src/com/android/inputmethod/latin/EditDistanceTests.java +++ b/tests/src/com/android/inputmethod/latin/EditDistanceTests.java @@ -17,7 +17,9 @@ package com.android.inputmethod.latin; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; +@SmallTest public class EditDistanceTests extends AndroidTestCase { @Override protected void setUp() throws Exception { diff --git a/tests/src/com/android/inputmethod/latin/ForgettingCurveTests.java b/tests/src/com/android/inputmethod/latin/ForgettingCurveTests.java index a2e71c11a..3259312df 100644 --- a/tests/src/com/android/inputmethod/latin/ForgettingCurveTests.java +++ b/tests/src/com/android/inputmethod/latin/ForgettingCurveTests.java @@ -17,7 +17,9 @@ package com.android.inputmethod.latin; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; +@SmallTest public class ForgettingCurveTests extends AndroidTestCase { public void testFcToFreq() { for (int i = 0; i < Byte.MAX_VALUE; ++i) { diff --git a/tests/src/com/android/inputmethod/latin/FusionDictionaryTests.java b/tests/src/com/android/inputmethod/latin/FusionDictionaryTests.java index 123959b4d..fd584761a 100644 --- a/tests/src/com/android/inputmethod/latin/FusionDictionaryTests.java +++ b/tests/src/com/android/inputmethod/latin/FusionDictionaryTests.java @@ -17,6 +17,7 @@ package com.android.inputmethod.latin; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import com.android.inputmethod.latin.makedict.FusionDictionary; import com.android.inputmethod.latin.makedict.FusionDictionary.Node; @@ -26,6 +27,7 @@ import java.util.HashMap; /** * Unit test for FusionDictionary */ +@SmallTest public class FusionDictionaryTests extends AndroidTestCase { public void testFindWordInTree() { FusionDictionary dict = new FusionDictionary(new Node(), diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java index 6412a9db5..d7b240780 100644 --- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java +++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java @@ -16,6 +16,9 @@ package com.android.inputmethod.latin; +import android.test.suitebuilder.annotation.LargeTest; + +@LargeTest public class InputLogicTests extends InputTestsBase { public void testTypeWord() { diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTestsNonEnglish.java b/tests/src/com/android/inputmethod/latin/InputLogicTestsNonEnglish.java index 42823f538..e012f7926 100644 --- a/tests/src/com/android/inputmethod/latin/InputLogicTestsNonEnglish.java +++ b/tests/src/com/android/inputmethod/latin/InputLogicTestsNonEnglish.java @@ -16,8 +16,11 @@ package com.android.inputmethod.latin; +import android.test.suitebuilder.annotation.LargeTest; + import com.android.inputmethod.latin.suggestions.SuggestionStripView; +@LargeTest public class InputLogicTestsNonEnglish extends InputTestsBase { final String NEXT_WORD_PREDICTION_OPTION = "next_word_prediction"; diff --git a/tests/src/com/android/inputmethod/latin/InputPointersTests.java b/tests/src/com/android/inputmethod/latin/InputPointersTests.java index cc55076c0..44526a37c 100644 --- a/tests/src/com/android/inputmethod/latin/InputPointersTests.java +++ b/tests/src/com/android/inputmethod/latin/InputPointersTests.java @@ -17,9 +17,11 @@ package com.android.inputmethod.latin; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import java.util.Arrays; +@SmallTest public class InputPointersTests extends AndroidTestCase { private static final int DEFAULT_CAPACITY = 48; diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index 10d415ba8..c44058772 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -31,16 +31,12 @@ import android.view.View; import android.view.ViewGroup; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; -import android.view.inputmethod.InputMethodInfo; -import android.view.inputmethod.InputMethodManager; -import android.view.inputmethod.InputMethodSubtype; import android.widget.FrameLayout; import android.widget.TextView; import com.android.inputmethod.keyboard.Key; import com.android.inputmethod.keyboard.Keyboard; -import java.util.HashMap; import java.util.Locale; public class InputTestsBase extends ServiceTestCase { diff --git a/tests/src/com/android/inputmethod/latin/PunctuationTests.java b/tests/src/com/android/inputmethod/latin/PunctuationTests.java index 0eb3ba41a..38203e8fc 100644 --- a/tests/src/com/android/inputmethod/latin/PunctuationTests.java +++ b/tests/src/com/android/inputmethod/latin/PunctuationTests.java @@ -16,8 +16,11 @@ package com.android.inputmethod.latin; +import android.test.suitebuilder.annotation.LargeTest; + import com.android.inputmethod.latin.R; +@LargeTest public class PunctuationTests extends InputTestsBase { final String NEXT_WORD_PREDICTION_OPTION = "next_word_prediction"; diff --git a/tests/src/com/android/inputmethod/latin/ResizableIntArrayTests.java b/tests/src/com/android/inputmethod/latin/ResizableIntArrayTests.java index 995fc14ea..7c415dff0 100644 --- a/tests/src/com/android/inputmethod/latin/ResizableIntArrayTests.java +++ b/tests/src/com/android/inputmethod/latin/ResizableIntArrayTests.java @@ -17,7 +17,9 @@ package com.android.inputmethod.latin; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; +@SmallTest public class ResizableIntArrayTests extends AndroidTestCase { private static final int DEFAULT_CAPACITY = 48; diff --git a/tests/src/com/android/inputmethod/latin/RichInputConnectionTests.java b/tests/src/com/android/inputmethod/latin/RichInputConnectionTests.java index ad9937940..9b8fc6d5d 100644 --- a/tests/src/com/android/inputmethod/latin/RichInputConnectionTests.java +++ b/tests/src/com/android/inputmethod/latin/RichInputConnectionTests.java @@ -18,6 +18,7 @@ package com.android.inputmethod.latin; import android.inputmethodservice.InputMethodService; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import android.view.inputmethod.ExtractedText; import android.view.inputmethod.ExtractedTextRequest; import android.view.inputmethod.InputConnection; @@ -25,6 +26,7 @@ import android.view.inputmethod.InputConnectionWrapper; import com.android.inputmethod.latin.RichInputConnection.Range; +@SmallTest public class RichInputConnectionTests extends AndroidTestCase { // The following is meant to be a reasonable default for diff --git a/tests/src/com/android/inputmethod/latin/StringUtilsTests.java b/tests/src/com/android/inputmethod/latin/StringUtilsTests.java index 3142bd602..f3fbb3e4b 100644 --- a/tests/src/com/android/inputmethod/latin/StringUtilsTests.java +++ b/tests/src/com/android/inputmethod/latin/StringUtilsTests.java @@ -17,10 +17,12 @@ package com.android.inputmethod.latin; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import android.text.TextUtils; import java.util.Locale; +@SmallTest public class StringUtilsTests extends AndroidTestCase { public void testContainsInArray() { assertFalse("empty array", StringUtils.containsInArray("key", new String[0])); diff --git a/tests/src/com/android/inputmethod/latin/SubtypeLocaleTests.java b/tests/src/com/android/inputmethod/latin/SubtypeLocaleTests.java index e37fef757..e406e84af 100644 --- a/tests/src/com/android/inputmethod/latin/SubtypeLocaleTests.java +++ b/tests/src/com/android/inputmethod/latin/SubtypeLocaleTests.java @@ -19,6 +19,7 @@ package com.android.inputmethod.latin; import android.content.Context; import android.content.res.Resources; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import android.view.inputmethod.InputMethodSubtype; import com.android.inputmethod.latin.LocaleUtils.RunInLocale; @@ -26,6 +27,7 @@ import com.android.inputmethod.latin.LocaleUtils.RunInLocale; import java.util.ArrayList; import java.util.Locale; +@SmallTest public class SubtypeLocaleTests extends AndroidTestCase { // Locale to subtypes list. private final ArrayList mSubtypesList = CollectionUtils.newArrayList(); diff --git a/tests/src/com/android/inputmethod/latin/UserHistoryDictIOUtilsTests.java b/tests/src/com/android/inputmethod/latin/UserHistoryDictIOUtilsTests.java index 66c9e1851..dd28fabf6 100644 --- a/tests/src/com/android/inputmethod/latin/UserHistoryDictIOUtilsTests.java +++ b/tests/src/com/android/inputmethod/latin/UserHistoryDictIOUtilsTests.java @@ -16,17 +16,17 @@ package com.android.inputmethod.latin; +import android.content.Context; +import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.LargeTest; +import android.util.Log; + import com.android.inputmethod.latin.UserHistoryDictIOUtils.BigramDictionaryInterface; import com.android.inputmethod.latin.UserHistoryDictIOUtils.OnAddWordListener; -import com.android.inputmethod.latin.makedict.BinaryDictInputOutput; import com.android.inputmethod.latin.makedict.FormatSpec; import com.android.inputmethod.latin.makedict.FusionDictionary; import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup; -import android.content.Context; -import android.test.AndroidTestCase; -import android.util.Log; - import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; @@ -39,6 +39,7 @@ import java.util.HashMap; /** * Unit tests for UserHistoryDictIOUtils */ +@LargeTest public class UserHistoryDictIOUtilsTests extends AndroidTestCase implements BigramDictionaryInterface { diff --git a/tests/src/com/android/inputmethod/latin/UserHistoryDictionaryTests.java b/tests/src/com/android/inputmethod/latin/UserHistoryDictionaryTests.java index 7536f64ac..594ba0e7b 100644 --- a/tests/src/com/android/inputmethod/latin/UserHistoryDictionaryTests.java +++ b/tests/src/com/android/inputmethod/latin/UserHistoryDictionaryTests.java @@ -16,15 +16,13 @@ package com.android.inputmethod.latin; -import com.android.inputmethod.latin.UserHistoryDictionary; - import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.LargeTest; import android.util.Log; import java.io.File; -import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Random; @@ -33,6 +31,7 @@ import java.util.Set; /** * Unit tests for UserHistoryDictionary */ +@LargeTest public class UserHistoryDictionaryTests extends AndroidTestCase { private static final String TAG = UserHistoryDictionaryTests.class.getSimpleName(); private SharedPreferences mPrefs; diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOTests.java index d080ed627..f3694eada 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOTests.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOTests.java @@ -16,6 +16,12 @@ package com.android.inputmethod.latin.makedict; +import android.test.AndroidTestCase; +import android.test.MoreAsserts; +import android.test.suitebuilder.annotation.LargeTest; +import android.util.Log; +import android.util.SparseArray; + import com.android.inputmethod.latin.CollectionUtils; import com.android.inputmethod.latin.UserHistoryDictIOUtils; import com.android.inputmethod.latin.makedict.BinaryDictInputOutput.FusionDictionaryBufferInterface; @@ -24,11 +30,6 @@ import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup; import com.android.inputmethod.latin.makedict.FusionDictionary.Node; import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; -import android.test.AndroidTestCase; -import android.test.MoreAsserts; -import android.util.Log; -import android.util.SparseArray; - import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; @@ -47,6 +48,7 @@ import java.util.Set; /** * Unit tests for BinaryDictInputOutput */ +@LargeTest public class BinaryDictIOTests extends AndroidTestCase { private static final String TAG = BinaryDictIOTests.class.getSimpleName(); private static final int MAX_UNIGRAMS = 1000; diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java index 318516845..25575baf0 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java @@ -16,32 +16,30 @@ package com.android.inputmethod.latin.makedict; +import android.test.AndroidTestCase; +import android.test.MoreAsserts; +import android.test.suitebuilder.annotation.LargeTest; +import android.util.Log; + import com.android.inputmethod.latin.CollectionUtils; import com.android.inputmethod.latin.makedict.BinaryDictInputOutput.ByteBufferWrapper; -import com.android.inputmethod.latin.makedict.BinaryDictInputOutput.CharEncoding; import com.android.inputmethod.latin.makedict.BinaryDictInputOutput.FusionDictionaryBufferInterface; import com.android.inputmethod.latin.makedict.FormatSpec.FileHeader; import com.android.inputmethod.latin.makedict.FusionDictionary.Node; import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; -import android.test.AndroidTestCase; -import android.test.MoreAsserts; -import android.util.Log; - import java.io.BufferedOutputStream; -import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; -import java.io.FileWriter; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.channels.FileChannel; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.Random; +@LargeTest public class BinaryDictIOUtilsTests extends AndroidTestCase { private static final String TAG = BinaryDictIOUtilsTests.class.getSimpleName(); private static final FormatSpec.FormatOptions FORMAT_OPTIONS = diff --git a/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java b/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java index 21406d370..1ea6b2e98 100644 --- a/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java +++ b/tests/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerServiceTest.java @@ -16,12 +16,12 @@ package com.android.inputmethod.latin.spellcheck; -import android.text.SpannableStringBuilder; -import android.text.style.CharacterStyle; +import android.test.suitebuilder.annotation.LargeTest; import android.text.style.SuggestionSpan; import com.android.inputmethod.latin.InputTestsBase; +@LargeTest public class AndroidSpellCheckerServiceTest extends InputTestsBase { public void testSpellchecker() { mTextView.onAttachedToWindow(); diff --git a/tests/src/com/android/inputmethod/research/MotionEventReaderTests.java b/tests/src/com/android/inputmethod/research/MotionEventReaderTests.java index c0eaaead4..e5b9bc0ce 100644 --- a/tests/src/com/android/inputmethod/research/MotionEventReaderTests.java +++ b/tests/src/com/android/inputmethod/research/MotionEventReaderTests.java @@ -17,6 +17,7 @@ package com.android.inputmethod.research; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; import android.util.JsonReader; import com.android.inputmethod.research.MotionEventReader.ReplayData; @@ -24,6 +25,7 @@ import com.android.inputmethod.research.MotionEventReader.ReplayData; import java.io.IOException; import java.io.StringReader; +@SmallTest public class MotionEventReaderTests extends AndroidTestCase { private MotionEventReader mMotionEventReader = new MotionEventReader(); private ReplayData mReplayData;