diff options
author | Ed Heyl <edheyl@google.com> | 2014-05-29 06:46:56 +0000 |
---|---|---|
committer | Ed Heyl <edheyl@google.com> | 2014-05-29 06:46:56 +0000 |
commit | 8bde324e003a081bf8d83fe28f040c318a4d2165 (patch) | |
tree | 7f62a380281b100e076e8ff9f4fd73ecb1888ce9 /tests/src/com/android/dialer/database | |
parent | fabd82363920a24be32d68adb5966412c626dea0 (diff) |
Fix build breakage: Revert "Fix broken Dialer tests"
This reverts commit fabd82363920a24be32d68adb5966412c626dea0.
Change-Id: If65df0d4badc3381f60923a04412f4bec5c36c62
Diffstat (limited to 'tests/src/com/android/dialer/database')
-rw-r--r-- | tests/src/com/android/dialer/database/SmartDialPrefixTest.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/src/com/android/dialer/database/SmartDialPrefixTest.java b/tests/src/com/android/dialer/database/SmartDialPrefixTest.java index 9cb842e56..558be265b 100644 --- a/tests/src/com/android/dialer/database/SmartDialPrefixTest.java +++ b/tests/src/com/android/dialer/database/SmartDialPrefixTest.java @@ -21,8 +21,6 @@ import android.database.sqlite.SQLiteDatabase; import android.test.suitebuilder.annotation.SmallTest; import android.test.suitebuilder.annotation.Suppress; import android.test.AndroidTestCase; -import android.text.TextUtils; -import android.util.Log; import android.provider.ContactsContract.CommonDataKinds.Phone; import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.Data; @@ -39,7 +37,7 @@ import java.util.ArrayList; /** * To run this test, use the command: - * adb shell am instrument -w -e class com.android.dialer.database.SmartDialPrefixTest / + * adb shell am instrument -w -e class com.android.dialer.dialpad.SmartDialPrefixTest / * com.android.dialer.tests/android.test.InstrumentationTestRunner */ @SmallTest @@ -147,12 +145,6 @@ public class SmartDialPrefixTest extends AndroidTestCase { assertNotNull(contactCursor); assertNotNull(nameCursor); - if (TextUtils.isEmpty(number)) { - // Add a dummy number, otherwise DialerDatabaseHelper simply ignores the entire - // row if the number is empty - number = "0"; - } - contactCursor.addRow(new Object[]{id, "", "", number, contactId, lookupKey, displayName, photoId, lastTimeUsed, timesUsed, starred, isSuperPrimary, inVisibleGroup, isPrimary}); @@ -300,8 +292,7 @@ public class SmartDialPrefixTest extends AndroidTestCase { // 6543 doesn't match assertFalse(getLooseMatchesFromDb("6543").contains(martinjuniorharry)); - // 7 actual rows, + 1 for the dummy number we added - assertEquals(8, mTestHelper.countPrefixTableRows(db)); + assertEquals(7, mTestHelper.countPrefixTableRows(db)); } public void testPutForInitialMatchesForLongTokenNames() { |